Skip to content

Commit

Permalink
docs: wrong version in the README example when install specific versi…
Browse files Browse the repository at this point in the history
…on (#2579)
  • Loading branch information
roele committed Sep 15, 2024
1 parent b3705c6 commit d161afe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .mise/tasks/release-plz
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ version="$(cargo pkgid mise | cut -d# -f2)"
git cliff --tag "v$version" -o CHANGELOG.md
changelog="$(git cliff --tag "v$version" --unreleased --strip all)"
changelog="$(echo "$changelog" | tail -n +3)"
sed -i.bak "s/^mise [0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?$/mise $version/" README.md
sed -i.bak "s/^[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\? macos-arm64 (a1b2d3e [0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\})$/$version macos-arm64 (a1b2d3e $date)/" README.md
sed -i.bak "s/^Version: [0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?$/Version: $version/" packaging/rpm/mise.spec
sed -i.bak "s/version = \"[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?\";$/version = \"$version\";/" default.nix

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ Install mise (other methods [here](https://mise.jdx.dev/getting-started.html)):
```sh-session
$ curl https://mise.run | sh
$ ~/.local/bin/mise --version
mise 2024.9.3
2024.9.3 macos-arm64 (a1b2d3e 2024-09-12)
```

or install a specific a version:

```sh-session
$ curl https://mise.run | MISE_VERSION=v2024.5.16 sh
$ ~/.local/bin/mise --version
mise 2024.9.3
2024.5.16 macos-arm64 (8838098 2024-05-14)
```

Hook mise into your shell (pick the right one for your shell):
Expand Down

0 comments on commit d161afe

Please sign in to comment.