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

Need helpers for debugging lock file issues #319

Open
TomMD opened this issue Mar 30, 2023 · 4 comments
Open

Need helpers for debugging lock file issues #319

TomMD opened this issue Mar 30, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@TomMD
Copy link

TomMD commented Mar 30, 2023

Could we get a debug or GNU-style -vvv for spewing information? I'm in a situation where cargo2nix complains:

$ nix run github:cargo2nix/cargo2nix
error: the lock file ....path.../Cargo.lock needs to be updated but --locked was passed to prevent this
If you want to try to generate the lock file without accessing the network, remove the --locked flag and use --offline instead.

But cargo generate-lockfile does not improve the situation. If I could pass flags to cargo through nix and cargo2nix such as --offline then I'd try that.

@psionic-k
Copy link
Member

Probably low-hanging bug. I was going to do a round of updates.

What's your nix version by the way?

I wouldn't worry about a flag. This is almost surely going to be a one-time fix in one place rather than generally useful behavior

@TomMD
Copy link
Author

TomMD commented Mar 31, 2023

It's a nixpkgs on Debian-based Linux:

$ nix --version
nix (Nix) 2.13.2

@TomMD
Copy link
Author

TomMD commented Mar 31, 2023

Looking forward to the updates,thanks for maintaining!

@psionic-k
Copy link
Member

Try passing "--locked" to a regular cargo build to verify that the Cargo.lock in source is up to date. It needs to be in version control. https://doc.rust-lang.org/cargo/commands/cargo-rustc.html#manifest-options

@psionic-k psionic-k added the enhancement New feature or request label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants