mirror of
https://github.com/nushell/nushell
synced 2024-11-10 07:04:13 +00:00
force version to update when installing with toolkit (#9947)
# Description
`version` has always been a bit off regarding the `commit_hash`
😕
i think it was @fdncred who found this trick: `touch`ing the
`crates/nu-cmd-lang/build.rs` file
- won't change the Git index
- will force Nushell to recompile the `version` information correctly
this PR adds a call to `touch` on that file to `toolkit install`.
# User-Facing Changes
`version` should be correct when installing locally with the `toolkit`.
# Tests + Formatting
# After Submitting
This commit is contained in:
parent
b1974fae39
commit
a2e117f8b0
1 changed files with 1 additions and 0 deletions
|
@ -341,6 +341,7 @@ export def install [
|
|||
...features: string@"nu-complete list features" # a space-separated list of feature to install with Nushell
|
||||
--all: bool # install all plugins with Nushell
|
||||
] {
|
||||
touch crates/nu-cmd-lang/build.rs # needed to make sure `version` has the correct `commit_hash`
|
||||
cargo install --path . --features ($features | str join ",")
|
||||
if not $all {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue