-
Notifications
You must be signed in to change notification settings - Fork 424
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
Support loading http credentials from netrc #2623
Support loading http credentials from netrc #2623
Conversation
Thank you!
Any reason why not? Naively, a big chunk of that new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me! Will leave @krasimirgg to discuss extending support :)
Co-authored-by: Daniel Wagner-Hall <dawagner@gmail.com>
I've basically followed the YAGNI rule. I though it would be straight forward to add and test these parameters, once they are need. If you say it is valuable to add it, I'm happy to do so. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_rust](https://github.com/bazelbuild/rules_rust) | http_archive | minor | `0.42.1` -> `0.43.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_rust (rules_rust)</summary> ### [`v0.43.0`](https://github.com/bazelbuild/rules_rust/releases/tag/0.43.0) [Compare Source](https://github.com/bazelbuild/rules_rust/compare/0.42.1...0.43.0) ### 0.43.0 ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust", integrity = "sha256-SnzocNvQp1YK1TW/aUVhR6RSROo1l2RilE1V20WFnK0=", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.43.0/rules_rust-v0.43.0.tar.gz"], ) ``` Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup #### What's Changed - Bzlmod-aware runfiles library by [@​dzbarsky](https://github.com/dzbarsky) in [https://github.com/bazelbuild/rules_rust/pull/2566](https://github.com/bazelbuild/rules_rust/pull/2566) - Add clippy_flag flag to allow flags to be added in succession. by [@​granaghan](https://github.com/granaghan) in [https://github.com/bazelbuild/rules_rust/pull/2625](https://github.com/bazelbuild/rules_rust/pull/2625) - Add aspect_rules_js to MODULE.bazel by [@​dzbarsky](https://github.com/dzbarsky) in [https://github.com/bazelbuild/rules_rust/pull/2618](https://github.com/bazelbuild/rules_rust/pull/2618) - Register a default rust toolchain. by [@​matts1](https://github.com/matts1) in [https://github.com/bazelbuild/rules_rust/pull/2624](https://github.com/bazelbuild/rules_rust/pull/2624) - Nit: Fix link to example in rust_bindgen.md by [@​hauserx](https://github.com/hauserx) in [https://github.com/bazelbuild/rules_rust/pull/2628](https://github.com/bazelbuild/rules_rust/pull/2628) - Add context to error messages by [@​illicitonion](https://github.com/illicitonion) in [https://github.com/bazelbuild/rules_rust/pull/2408](https://github.com/bazelbuild/rules_rust/pull/2408) - Update `cargo_bootstrap_repository` interface to match dependency macros by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2630](https://github.com/bazelbuild/rules_rust/pull/2630) - Added debug logging for spliced manifests to crate_universe by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2629](https://github.com/bazelbuild/rules_rust/pull/2629) - also rewrite -isystem in addition to -sysroot by [@​adrianimboden](https://github.com/adrianimboden) in [https://github.com/bazelbuild/rules_rust/pull/2631](https://github.com/bazelbuild/rules_rust/pull/2631) - Support loading http credentials from netrc by [@​golovasteek](https://github.com/golovasteek) in [https://github.com/bazelbuild/rules_rust/pull/2623](https://github.com/bazelbuild/rules_rust/pull/2623) - Updated Buildifier version for crate_universe by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2634](https://github.com/bazelbuild/rules_rust/pull/2634) - Follow-up documentation/fixes to lockfile API by [@​illicitonion](https://github.com/illicitonion) in [https://github.com/bazelbuild/rules_rust/pull/2637](https://github.com/bazelbuild/rules_rust/pull/2637) - Add docs and examples of complicated build scripts by [@​illicitonion](https://github.com/illicitonion) in [https://github.com/bazelbuild/rules_rust/pull/2635](https://github.com/bazelbuild/rules_rust/pull/2635) - Added Rust 1.78.0 by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2639](https://github.com/bazelbuild/rules_rust/pull/2639) - Remove `incompatible_test_attr_crate_and_srcs_mutually_exclusive` by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2641](https://github.com/bazelbuild/rules_rust/pull/2641) - Minor cleanup for crate_universe by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2644](https://github.com/bazelbuild/rules_rust/pull/2644) - Use `cargo tree` to determine feature dependent optional deps by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2636](https://github.com/bazelbuild/rules_rust/pull/2636) - Release 0.43.0 by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2642](https://github.com/bazelbuild/rules_rust/pull/2642) - Update cross to fix crate_universe builds in releases by [@​UebelAndre](https://github.com/UebelAndre) in [https://github.com/bazelbuild/rules_rust/pull/2645](https://github.com/bazelbuild/rules_rust/pull/2645) #### New Contributors - [@​hauserx](https://github.com/hauserx) made their first contribution in [https://github.com/bazelbuild/rules_rust/pull/2628](https://github.com/bazelbuild/rules_rust/pull/2628) - [@​adrianimboden](https://github.com/adrianimboden) made their first contribution in [https://github.com/bazelbuild/rules_rust/pull/2631](https://github.com/bazelbuild/rules_rust/pull/2631) - [@​golovasteek](https://github.com/golovasteek) made their first contribution in [https://github.com/bazelbuild/rules_rust/pull/2623](https://github.com/bazelbuild/rules_rust/pull/2623) **Full Changelog**: bazelbuild/rules_rust@0.42.1...0.43.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/bazel-contrib/toolchains_llvm). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Bazel's
http_archive
andhttp_file
use~/.netrc
file to load HTTP credentials.Now rules_rust use the same approach if no other authorization parameters are provided.
NOTE:
http_archive
supports passing a customnetrc
andauth_patterns
. But this parameters are not added to the rust rules at the moment.