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

Drop curl fallback for oci_pull #562

Closed
thesayyn opened this issue May 8, 2024 · 1 comment · Fixed by #568
Closed

Drop curl fallback for oci_pull #562

thesayyn opened this issue May 8, 2024 · 1 comment · Fixed by #568
Assignees
Labels
cleanup Address tech debt
Milestone

Comments

@thesayyn
Copy link
Collaborator

thesayyn commented May 8, 2024

When we implemented oci_pull we created a fallback to curl behavior due to a missing feature in Bazel bazelbuild/bazel#19501, now that Bazel supports headers feature, we no longer need this fallback and we should remove it as a breaking change in 2.x and encourage people to upgrade Bazel.

@thesayyn thesayyn added the cleanup Address tech debt label May 8, 2024
@thesayyn thesayyn self-assigned this May 8, 2024
@thesayyn thesayyn added this to the 2.0 milestone May 8, 2024
ddeville added a commit to ddeville/rules_oci that referenced this issue May 29, 2024
Rather than falling back to curl let's actually pass the headers to the
native Bazel downloader if we're running a version of Bazel that
supports them (i.e. >= 7.1.0). I had to bring the `bazel_features` repo
to detect this.

Note that I've kept support for curl rather than introducing the
breaking change (as bazel-contrib#562 discusses) so that we can start taking
advantage of it without breaking for people still on older versions of
Bazel.
ddeville added a commit to ddeville/rules_oci that referenced this issue May 29, 2024
Rather than falling back to curl let's actually pass the headers to the
native Bazel downloader if we're running a version of Bazel that
supports them (i.e. >= 7.1.0). I had to bring the `bazel_features` repo
to detect this.

Note that I've kept support for curl rather than introducing the
breaking change (as bazel-contrib#562 discusses) so that we can start taking
advantage of it without breaking for people still on older versions of
Bazel.
@thesayyn
Copy link
Collaborator Author

fixed by #568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Address tech debt
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant