This is an automated email from the ASF dual-hosted git repository. diqiu50 pushed a commit to branch feature/10448-non-interactive-release in repository https://gitbox.apache.org/repos/asf/gravitino.git
commit 6a720fcd4ff2a46466d9866e36ad191863ea68c9 Author: diqiu50 <[email protected]> AuthorDate: Wed Mar 18 14:46:17 2026 +0800 fix: initialize RELEASE_TAG and SKIP_TAG in docker mode In docker mode get_release_info is never called, leaving RELEASE_TAG and SKIP_TAG unbound. With set -u active this causes an immediate abort at the should_build/tag check. Derive RELEASE_TAG from RELEASE_VERSION and RC_COUNT (which the driver script exports), and determine SKIP_TAG by checking whether the tag already exists via check_for_tag. --- dev/release/do-release.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev/release/do-release.sh b/dev/release/do-release.sh index d2fe707ccf..5a0fd58f18 100755 --- a/dev/release/do-release.sh +++ b/dev/release/do-release.sh @@ -112,6 +112,15 @@ if [ "$RUNNING_IN_DOCKER" = "1" ]; then # JAVA_HOME for the openjdk package. export JAVA_HOME=/usr fi + + # In docker mode get_release_info is not called; derive the release tag variables + # from env vars that the driver script is expected to have exported. + export RELEASE_TAG="${RELEASE_TAG:-v${RELEASE_VERSION}-rc${RC_COUNT}}" + export GRAVITINO_PACKAGE_VERSION="$RELEASE_TAG" + SKIP_TAG=0 + if check_for_tag "$RELEASE_TAG"; then + SKIP_TAG=1 + fi else # Outside docker, collect release information. # In force/non-interactive mode (-y), read_config uses env vars and skips prompts.
