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

crate_universe re-pinning now defaults to "workspace" #1723

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

UebelAndre
Copy link
Collaborator

@UebelAndre UebelAndre commented Dec 22, 2022

This change updates the default behavior of re-pinning with crates_vendor and crates_repository to re-pin workspace dependencies, not all transitive ones. Users who wish to do a full re-pin of all their dependencies should can pass the following values:

  • eager
  • full
  • all

closes #1522

@@ -100,11 +100,11 @@ impl FromStr for CargoUpdateRequest {
fn from_str(s: &str) -> Result<Self, Self::Err> {
let lower = s.to_lowercase();

if ["1", "yes", "true", "on"].contains(&lower.as_str()) {
if ["eager", "full", "all"].contains(&lower.as_str()) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Open to naming suggestions 😄

@UebelAndre UebelAndre marked this pull request as ready for review December 22, 2022 18:09
@UebelAndre UebelAndre force-pushed the crate_universe branch 2 times, most recently from 550cd15 to d085908 Compare January 3, 2023 20:18
@UebelAndre UebelAndre merged commit d916a6f into bazelbuild:main Jan 3, 2023
@UebelAndre UebelAndre deleted the crate_universe branch January 3, 2023 20:34
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.

Don't update Cargo.lock when re-pinning
2 participants