This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 807e41246e04 [SPARK-53689][BUILD] Respect RELEASE_VERSION environment
variable if already defined
807e41246e04 is described below
commit 807e41246e048cb97360ea60902e214783d8fff1
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Wed Sep 24 12:44:53 2025 +0900
[SPARK-53689][BUILD] Respect RELEASE_VERSION environment variable if
already defined
### What changes were proposed in this pull request?
This PR fixes the release script to respect RELEASE_VERSION environment
variable if already defined
### Why are the changes needed?
Otherwise, pre-defined `RELEASE_VERSION` does not work.
### Does this PR introduce _any_ user-facing change?
No, dev-only.
### How was this patch tested?
Manually.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #52430 from HyukjinKwon/respect-release-version.
Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit 8ac0382b41f1e6eef0150d0c2d6bc15e691c3846)
Signed-off-by: Hyukjin Kwon <[email protected]>
---
dev/create-release/release-util.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev/create-release/release-util.sh
b/dev/create-release/release-util.sh
index 3194fa7773c7..74d91d624c2f 100755
--- a/dev/create-release/release-util.sh
+++ b/dev/create-release/release-util.sh
@@ -106,7 +106,9 @@ function get_release_info {
fi
NEXT_VERSION="$VERSION"
- RELEASE_VERSION="${VERSION/-SNAPSHOT/}"
+ if [ -z "$RELEASE_VERSION" ]; then
+ RELEASE_VERSION="${VERSION/-SNAPSHOT/}"
+ fi
SHORT_VERSION=$(echo "$VERSION" | cut -d . -f 1-2)
local REV=$(echo "$RELEASE_VERSION" | cut -d . -f 3)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]