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

Gen lockfile #36

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LevitatingBusinessMan
Copy link

fixes #24

Copy link

@ZibanPirate ZibanPirate left a 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()])

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

Suggested change
.args(&["generate-lockfile", "--offline", "--manifest-path", &conf.manifest.to_string_lossy()])
.args(&["build"])

Comment on lines +70 to +72
Arg::with_name("ignore-lockfile")
.long("ignore-lockfile")
.help("Don't update the lockfile")

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:

Suggested change
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")

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.

--git-tag does not commit Cargo.lock
2 participants