Skip to content

Commit d4faa70

Browse files
committed
feat(release): show why a version is dirty
This should help when troubleshooting. Signed-off-by: Pablo Barbáchano <pablob@amazon.com>
1 parent 2a0b5b1 commit d4faa70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ PROFILE_DIR=$(get-profile-dir "$PROFILE")
9090
CARGO_TARGET=$ARCH-unknown-linux-$LIBC
9191
CARGO_TARGET_DIR=build/cargo_target/$CARGO_TARGET/$PROFILE_DIR
9292

93+
if [[ $VERSION =~ "-dirty$" ]]; then
94+
say_warn "Building dirty version.. dirty because:"
95+
git status -s --untracked-files=no
96+
git diff
97+
fi
98+
9399
CARGO_REGISTRY_DIR="build/cargo_registry"
94100
CARGO_GIT_REGISTRY_DIR="build/cargo_git_registry"
95101
for dir in "$CARGO_REGISTRY_DIR" "$CARGO_GIT_REGISTRY_DIR"; do

0 commit comments

Comments
 (0)