Give each channel a package index
orbit-index:latest in a channel lists its packages. Search reads it and falls back to the catalog; publish keeps it current and 'orbit index' rebuilds it. Installs never use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2026319f61
commit
4271a084b6
7 files changed
+498
-25
No files matched your search
+3
-2
@@ -624,6 +624,7 @@ async fn oci_request(
|
||||
body : Bytes,
|
||||
scope_key : String,
|
||||
creds_override? : Creds,
|
||||
check_login? : Bool = true,
|
||||
) -> (@http.Response, Bytes) raise OrbitError {
|
||||
let initial_url = parse_url(url_str)
|
||||
let (initial_auth, used_cached) = if creds_override is None && scope_key != "" {
|
||||
@@ -638,7 +639,7 @@ async fn oci_request(
|
||||
meth, url_str, headers, initial_auth, body,
|
||||
)
|
||||
if resp.code != 401 {
|
||||
if creds_override is None {
|
||||
if creds_override is None && check_login {
|
||||
check_rejected_login(final_url.host, resp.code)
|
||||
}
|
||||
return (resp, resp_body)
|
||||
@@ -666,7 +667,7 @@ async fn oci_request(
|
||||
Some(retry_auth),
|
||||
body,
|
||||
)
|
||||
if creds_override is None {
|
||||
if creds_override is None && check_login {
|
||||
check_rejected_login(final_url.host, retry_resp.code)
|
||||
}
|
||||
(retry_resp, retry_body)
|
||||
|
||||
Reference in new issue
Block a user