Skip to content

Commit

Permalink
build: 🛠 Add update to NU_VERSION in src/nu_version.rs to upgrade-nu …
Browse files Browse the repository at this point in the history
…task
  • Loading branch information
ddanier committed Mar 14, 2024
1 parent 63424ba commit 457d7e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion nurfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def "nur release" [
def "nur upgrade-nu" [
version: string
] {
print $"Updating all required nu packages to (ansi purple)($version)(ansi reset)"
open Cargo.toml | get dependencies | transpose key value | each {
|it| if ($it.key starts-with "nu-") and not ($it.key == "nu-ansi-term") {
try {
Expand All @@ -88,7 +89,11 @@ def "nur upgrade-nu" [
}

print ""
print $"(ansi yellow)Please ensure all other packages are also upgraded accordingly:(ansi reset)"
print $"Storing version (ansi purple)($version)(ansi reset) in src/nu_version.rs as NU_VERSION constant"
echo $'pub const NU_VERSION: &str = "($version)";' | save -f src/nu_version.rs

print ""
print $"(ansi yellow)IMPORTANT: Please ensure all other packages are also upgraded accordingly:(ansi reset)"
print $" -> (ansi cyan)nu-ansi-term(ansi reset): needs to be the same version as used in (ansi cyan)nu-cli(ansi reset)"
print $" -> (ansi cyan)miette(ansi reset): needs to be the same version as used in (ansi cyan)nu-cmd-base(ansi reset)"
}
2 changes: 1 addition & 1 deletion src/nu_version.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub const NU_VERSION: &str = "0.90.1";
pub const NU_VERSION: &str = "0.91.0";

0 comments on commit 457d7e4

Please sign in to comment.