Skip to content
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

Remove scheme from OCI URL before parsing it #796

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

lcarva
Copy link
Contributor

@lcarva lcarva commented Mar 20, 2023

Without this change, registry.ParseReference throws an error if the URL contains a scheme, e.g. https://.

@lcarva
Copy link
Contributor Author

lcarva commented Mar 20, 2023

Linter appears to be failing due to unrelated code?

UPDATE: Added a new commit to fix issues reported by linter.

lcarva added a commit to lcarva/ec-cli that referenced this pull request Mar 20, 2023
User reported error:

error validating image ... of component ...: client get:
error downloading 'https://quay.io/hacbs-contract/ec-release-policy:latest': reference:
invalid reference: invalid repository

The issue is due to a recent change in the conftest downloader. Since
that fix is not yet merged, this commit picks up the fix from my fork:
open-policy-agent/conftest#796

Signed-off-by: Luiz Carvalho <[email protected]>
@jalseth
Copy link
Member

jalseth commented Mar 22, 2023

@lcarva Thanks for the PR! Can you revert e1d1e1d? It is best to keep the changes small and a separate PR was submitted to address the linter issues. Also I think a593045d74370cb625864805c202119c65cb8d86 was committed accidentally and should also be removed from the PR.

Without this change, registry.ParseReference throws an error if the URL
contains a scheme, e.g. https://.

Signed-off-by: Luiz Carvalho <[email protected]>
@lcarva
Copy link
Contributor Author

lcarva commented Mar 22, 2023

@lcarva Thanks for the PR! Can you revert e1d1e1d? It is best to keep the changes small and a separate PR was submitted to address the linter issues. Also I think a593045d74370cb625864805c202119c65cb8d86 was committed accidentally and should also be removed from the PR.

Thanks for the feedback! Update the PR to include a single commit.

@jalseth jalseth merged commit 13c4bed into open-policy-agent:master Mar 24, 2023
@lcarva lcarva deleted the fix-oc-getter branch March 24, 2023 12:48
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