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

refactor: remove curl fallback #568

Merged
merged 3 commits into from
May 30, 2024
Merged

refactor: remove curl fallback #568

merged 3 commits into from
May 30, 2024

Conversation

thesayyn
Copy link
Collaborator

fixes #562

BREAKING CHANGE

Now that curl fallback is gone, users hitting that code path has to do following.

People hitting the curl fallback due to Schema 1 manifest will have to, either upgrade to Bazel 7.1 or use a digest instead of a tag for oci_pull.

People hitting the curl fallback due to oci-media-typed images being fetched without an Accept header will have to, either upgrade to Bazel 7.1, or use a Credential Helper to set headers expected by the registry, including the authorization headers.

@thesayyn thesayyn changed the base branch from main to 2.x May 10, 2024 22:09
@thesayyn thesayyn requested a review from alexeagle May 10, 2024 22:10
Copy link
Collaborator

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

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

In the PR description you say "users in this situation need to do X, and other users in other situation need to do Y"

Can we somehow print these as error messages to make it more discoverable?

oci/private/pull.bzl Show resolved Hide resolved
@alexeagle alexeagle changed the title refacor: remove curl fallback refactor: remove curl fallback May 11, 2024
@thesayyn
Copy link
Collaborator Author

In the PR description you say "users in this situation need to do X, and other users in other situation need to do Y"

Good suggestion, some of these are not exactly detectable but we can hint those. I'll see what can be done.

@thesayyn thesayyn force-pushed the remote_curl_fallback branch 8 times, most recently from e62b977 to d7d1112 Compare May 29, 2024 19:02
@thesayyn
Copy link
Collaborator Author

Can we somehow print these as error messages to make it more discoverable?

Okay, it's done.

@thesayyn thesayyn requested a review from alexeagle May 29, 2024 19:11
@thesayyn
Copy link
Collaborator Author

@alexeagle PTAL again.

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@thesayyn thesayyn merged commit 7c26270 into 2.x May 30, 2024
18 checks passed
@thesayyn thesayyn deleted the remote_curl_fallback branch May 30, 2024 01:01
thesayyn added a commit that referenced this pull request May 30, 2024
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.

Drop curl fallback for oci_pull
2 participants