You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mod/modregistry: treat all 404 errors as not-found
Despite the fact that the OCI specification explicitly lists the error
codes that a registry should return, it seems that some registries do
not follow the spec.
Given that 404 is a reasonably unambiguous error, it seems OK to treat
all 404 errors as if they were returning one of the standard not-found
errors.
Also change `GetModule` so that it also treats "not found" responses
in the same way as the `ModuleVersions` call.
Fixes#2982
Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I96a4e28f38ad1fcf78c0be70a6aaa38713641123
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194495
Reviewed-by: Daniel Martí <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
import failed: cannot find package "example.com/e": cannot fetch example.com/[email protected]: module example.com/[email protected]: 404 Not Found: name unknown: repository name not known to registry:
Copy file name to clipboardExpand all lines: cue/load/testdata/testfetch/depnotfound.txtar
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
-- out/modfetch/error --
2
-
import failed: cannot find package "example.com": cannot fetch [email protected]: module [email protected]: 404 Not Found: name unknown: repository name not known to registry:
0 commit comments