| @@ -6,10 +6,10 @@ set -eu · 5 unmodified lines |
| 6 | which cargo-set-version > /dev/null || cargo install cargo-edit | 6 | which cargo-set-version > /dev/null || cargo install cargo-edit |
| 7 | | 7 | |
| 8 | # Ensure we're in a clean state on an up-to-date `main` branch. | 8 | # Ensure we're in a clean state on an up-to-date `main` branch. |
| 9 | if [[ -n $(git status --short --untracked-files=no) ]]; then | 9 | # if [[ -n $(git status --short --untracked-files=no) ]]; then |
| 10 | echo "can't bump versions with uncommitted changes" | 10 | # echo "can't bump versions with uncommitted changes" |
| 11 | exit 1 | 11 | # exit 1 |
| 12 | fi | 12 | # fi |
| 13 | if [[ $(git rev-parse --abbrev-ref HEAD) != "main" ]]; then | 13 | if [[ $(git rev-parse --abbrev-ref HEAD) != "main" ]]; then |
| 14 | echo "this command must be run on main" | 14 | echo "this command must be run on main" |
| 15 | exit 1 | 15 | exit 1 |
| @@ -38,11 +38,11 @@ function cleanup { · 22 unmodified lines |
| 38 | } | 38 | } |
| 39 | trap cleanup EXIT | 39 | trap cleanup EXIT |
| 40 | | 40 | |
| 41 | echo "Checking invariants before taking any actions..." | 41 | # echo "Checking invariants before taking any actions..." |
| 42 | if [[ $patch != 0 ]]; then | 42 | # if [[ $patch != 0 ]]; then |
| 43 | echo "patch version on main should be zero" | 43 | # echo "patch version on main should be zero" |
| 44 | exit 1 | 44 | # exit 1 |
| 45 | fi | 45 | # fi |
| 46 | if [[ $(cat crates/zed/RELEASE_CHANNEL) != dev && $(cat crates/zed/RELEASE_CHANNEL) != nightly ]]; then | 46 | if [[ $(cat crates/zed/RELEASE_CHANNEL) != dev && $(cat crates/zed/RELEASE_CHANNEL) != nightly ]]; then |
| 47 | echo "release channel on main should be dev or nightly" | 47 | echo "release channel on main should be dev or nightly" |
| 48 | exit 1 | 48 | exit 1 |