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

cargo update may silently update dependencies #5530

Open
ehuss opened this issue May 13, 2018 · 1 comment
Open

cargo update may silently update dependencies #5530

ehuss opened this issue May 13, 2018 · 1 comment
Labels
C-bug Category: bug Command-update S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

Comments

@ehuss
Copy link
Contributor

ehuss commented May 13, 2018

In some situations, cargo update can change the version of a dependency, but it won't tell you that it updated it. I would expect that any changes to the lock file are accompanied with updating/removing/adding messages.

Repro:

  1. Set up a workspace with the following members and dependencies:
a → bitflags="0.9"
b → bitflags="1.0"
c → bitflags="0.9"
  1. cargo update to build the lock file.
  2. Edit c's version of bitflags to be "1.0".
  3. Run cargo update again. c's dependency will be updated, but there is no output telling you it updated something.
@alexcrichton
Copy link
Member

Interesting! I think this can be summarized as cargo update prints new/deleted nodes in the dependency graph, but in general it doesn't inform you at all about updated/deleted edges if the number of nodes are the same

debris added a commit to debris/cargo that referenced this issue Jun 15, 2018
@epage epage added the S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted. label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug Command-update S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Projects
None yet
Development

No branches or pull requests

3 participants