-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(config): Ensure --config net.git-fetch-with-cli=true
is respected
#13992
Conversation
This reverts commit f525e1f. This removes color control from warnings for unstable features. For some reason this removed color support from `cargo -Zhelp` in the tests but I can't reproduce it locally. The most important thing was getting the config fix in. There are two follow ups - Can we have the config working *and* color? - Why did this fail for this field and not the others we already had tests for? I ran out my immediate time box for looking into these. Fixes rust-lang#13991
r? @weihanglo rustbot has assigned @weihanglo. Use |
I suspect we should do a beta-backport for this (another reason to keep this PR simple). Should we also do a 1.78.1? I suspect that 1.79 is close enough that it won't be worth it. |
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.
Yes we should do a beta backport
@bors r+ |
☀️ Test successful - checks-actions |
Update cargo 9 commits in 431db31d0dbeda320caf8ef8535ea48eb3093407..7a6fad0984d28c8330974636972aa296b67c4513 2024-05-28 18:17:31 +0000 to 2024-05-31 22:26:03 +0000 - fix(config): Ensure `--config net.git-fetch-with-cli=true` is respected (rust-lang/cargo#13992) - Fix libcurl proxy documentation link (rust-lang/cargo#13990) - fix(new): Dont say were adding to a workspace when a regular package is in root (rust-lang/cargo#13987) - fix: adjust custom err from cert-check due to libgit2 1.8 change (rust-lang/cargo#13970) - fix(toml): Ensure targets are in a deterministic order (rust-lang/cargo#13989) - doc(cargo-package): explain no guarantee of vcs provenance (rust-lang/cargo#13984) - chore: fix some comments (rust-lang/cargo#13982) - feat: stabilize `cargo update --precise <yanked>` (rust-lang/cargo#13974) - Update openssl-src to 111.28.2+1.1.1w (rust-lang/cargo#13976) r? ghost
refactor(source): Split `RecursivePathSource` out of `PathSource` ### What does this PR try to resolve? `PathSource` serves a couple of roles - When a dependency / patch uses `path` (non-recursive) - As the implementation details of a `git` source (recursive) - Dependency overrides (recursive) Instead of using a `PathSource::new` vs `PathSouce::new_recursive`, this does `RecursivePathSource::new`. This makes the intent a lot clearer and makes it easier to customize the behavior to each role that is played. Specifically, there are two ways I expect to leverage this refactor - Improve the interplay between `RecursivePathSource` and `read_packages` to reduce the duplicate package warnings for git sources (#13992) - cargo script will change the semantics of path sources slightly and I'm assuming having a distinct source will make this easier ### How should we test and review this PR? ### Additional information
What does this PR try to resolve?
#13479 changed the global context initialization order so that command line stuff is processed after we read some config.
This had a side effect of breaking
--config net.git-fetch-with-cli=true
.I reverted the change to restore support for
--config
.Fixes #13991
How should we test and review this PR?
Additional information
This reverts commit f525e1f.
This removes color control from warnings for unstable features.
For some reason this removed color support from
cargo -Zhelp
in thetests but I can't reproduce it locally.
The most important thing was getting the config fix in.
There are two follow ups
tests for?
I ran out my immediate time box for looking into these.