Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions release.nu
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ export def main [version: string] {
patch_cargo_toml $requested_version

# update cargo lock
update_cargo_lock
let update_all_deps = if not ('Cargo.lock' | path exists) { true } else { (((input "Update dependencies in Cargo.lock? (y/N) " --numchar 1 --default "N") | str downcase) == "y") }

if $update_all_deps {
update_cargo_lock_all
} else {
update_cargo_lock
}

# replace NEXTRELEASE with version
update_next_release cli/src/command_line.rs $version
Expand Down Expand Up @@ -86,7 +92,12 @@ def patch_cargo_toml [version: list<int>] {
}

def update_cargo_lock [] {
"Updating Cargo.lock" | echo_section_headline
"Updating Cargo.lock - satty crates" | echo_section_headline
cargo update satty satty_cli
}

def update_cargo_lock_all [] {
"Updating Cargo.lock - satty crates and deps" | echo_section_headline
cargo generate-lockfile
}

Expand Down
Loading