Skip to content

Fix validation of new bazel http header qualifiers #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

tomgr
Copy link
Contributor

@tomgr tomgr commented Feb 18, 2025

Support for this was added in #49 but it seems the validation code wasn't updated. I ran into this whilst using rules_oci, which sets various headers, leading to errors like:

field:"qualifiers.name" description:"\"http_header:Accept\" not supported"
field:"qualifiers.name" description:"\"http_header:Docker-Distribution-API-Version\" not supported"]

Copy link
Collaborator

@tomcoldrick-ct tomcoldrick-ct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I think you've included an unrelated change to the function below though.

@tomgr tomgr force-pushed the bugfix/http-header-validation branch from 128975f to af04301 Compare February 20, 2025 10:42
@tomgr tomgr force-pushed the bugfix/http-header-validation branch from af04301 to dc38564 Compare February 20, 2025 10:43
@tomcoldrick-ct tomcoldrick-ct merged commit 96dd68a into buildbarn:master Feb 20, 2025
1 check passed
@tomgr tomgr deleted the bugfix/http-header-validation branch February 20, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants