Skip to content

BUG: oci_pull hides error messages from URL rewriter #674

Closed
@thesayyn

Description

When url rewriter blocks the requests made by oci_pull, due to legacy reasons we write an error message that says

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

however, in other rulesets you get an error message stating the explicit reason why it failed,

 Configured URL rewriter blocked all URLs: [https://go.dev/dl/?mode=json&include=all, https://golang.google.cn/dl/?mode=json&include=all]

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions