-
Notifications
You must be signed in to change notification settings - Fork 24
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
Gen lockfile #36
base: master
Are you sure you want to change the base?
Gen lockfile #36
Conversation
7d13595
to
6d3e41d
Compare
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.
can we get this merged @wraithan? changes seem good, and this feature makes sense I think
@@ -35,6 +36,13 @@ fn main() { | |||
.unwrap(); | |||
f.write_all(output.to_string().as_bytes()).unwrap(); | |||
|
|||
if !&conf.ignore_lockfile { | |||
Command::new("cargo") | |||
.args(&["generate-lockfile", "--offline", "--manifest-path", &conf.manifest.to_string_lossy()]) |
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.
i found this command change more than just the current crate version
let's instead change it to cargo build
it seems safer
.args(&["generate-lockfile", "--offline", "--manifest-path", &conf.manifest.to_string_lossy()]) | |
.args(&["build"]) |
Arg::with_name("ignore-lockfile") | ||
.long("ignore-lockfile") | ||
.help("Don't update the lockfile") |
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.
following the other suggestion and to not introduce a breaking change, let's change this flag to:
Arg::with_name("ignore-lockfile") | |
.long("ignore-lockfile") | |
.help("Don't update the lockfile") | |
Arg::with_name("build") | |
.long("build") | |
.help("Run cargo build after version change to generate Cargo.lock") |
fixes #24