Skip to content

Gen lockfile#36

Open
LevitatingBusinessMan wants to merge 3 commits into
wraithan:masterfrom
LevitatingBusinessMan:gen-lockfile
Open

Gen lockfile#36
LevitatingBusinessMan wants to merge 3 commits into
wraithan:masterfrom
LevitatingBusinessMan:gen-lockfile

Conversation

@LevitatingBusinessMan
Copy link
Copy Markdown

fixes #24

Copy link
Copy Markdown

@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

Comment thread src/main.rs

if !&conf.ignore_lockfile {
Command::new("cargo")
.args(&["generate-lockfile", "--offline", "--manifest-path", &conf.manifest.to_string_lossy()])
Copy link
Copy Markdown

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 thread src/config.rs
Comment on lines +70 to +72
Arg::with_name("ignore-lockfile")
.long("ignore-lockfile")
.help("Don't update the lockfile")
Copy link
Copy Markdown

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