Skip to content

Commit

Permalink
refactor: mention url rewriter in oci_pull errors (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn authored Aug 27, 2024
1 parent 22d915a commit 9faf210
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions oci/private/pull.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,18 @@ See: https://github.com/bazel-contrib/rules_oci/blob/main/docs/pull.md#authentic
"""

OCI_MEDIA_TYPE_OR_AUTHN_ERROR = """\
Unable to retrieve the image manifest. This could be due to authentication problems or an attempt to fetch an image with OCI image media types.
See: https://github.com/bazel-contrib/rules_oci/blob/main/docs/pull.md#authentication-using-credential-helpers
Unable to retrieve the image manifest. This could be due to
*) Authentication problems. Check if `docker pull` command succeeds with same parameters.
*) Fetching an image with OCI image media types.
*) If there is a configured URL Rewriter, check that it does not block the request.
See for more: https://github.com/bazel-contrib/rules_oci/blob/main/docs/pull.md#authentication-using-credential-helpers
"""

OCI_MEDIA_TYPE_OR_AUTHN_ERROR_BAZEL7 = """\
Unable to retrieve the image manifest. This could be due to authentication problems.
Unable to retrieve the image manifest. This could be due to
*) Authentication problems. Check if `docker pull` command succeeds with same parameters.
*) If there is a configured URL Rewriter, check that it does not block the request.
"""

# Supported media types
Expand Down

0 comments on commit 9faf210

Please sign in to comment.