forked from cargo2nix/cargo2nix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automatically update the lockfile and support --locked
There is a problem because cargo2nix is not using the cargo binary here, which could result in the lockfile being different than the project's lock file. We want the behavior that cargo implements privately, to see that the lockfile is out of date and to ask if the user wants to update it. Cargo2nix could offload the work via metadata and json parsing, which may make more sense as a cargo plugin. Cargo2nix will be limited in its capability to work seemlessly with newer or older projects if they generate lockfiles that clash with the output of cargo2nix. The use of the cargo library further cements the potential for disparity.
- Loading branch information
Showing
1 changed file
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters