nushell / nushell.github.io

Nushell's main website, blog, book, and more
https://www.nushell.sh/book/
MIT License
183 stars 434 forks source link

Use `--locked` flag for Cargo install #1641

Open allan2 opened 1 day ago

allan2 commented 1 day ago

Omitting the --locked flag can cause installation to fail when dependencies have broken updates.

For example, trying to install the 0.100.0 release using cargo install nu fails for me due to an issue with uutils.

I suggest adding the --locked flag to all cargo install references in the docs. I'd be happy to open a PR.

fdncred commented 1 day ago

There's only been a couple times over the last 5 years that --locked has been required. However, I don't see any harm to adding it.

stifskere commented 1 day ago

That just happened to me yesterday, so I upvote this.

fdncred commented 1 day ago

Yup, now is one of the couple times this has happened due to changes at uutils/coreutils.