From ae004e15c98b36dda9c460d4d0ee9891889a5adf Mon Sep 17 00:00:00 2001 From: Douglas Yang Date: Tue, 3 Feb 2026 15:54:41 -0800 Subject: [PATCH] fix: ensuring nightly whls are tagged with latest commit (#18204) --- .github/workflows/release-pypi-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-pypi-nightly.yml b/.github/workflows/release-pypi-nightly.yml index 93971b9ef..c7cbd7e60 100644 --- a/.github/workflows/release-pypi-nightly.yml +++ b/.github/workflows/release-pypi-nightly.yml @@ -62,7 +62,7 @@ jobs: # If building at exact tag (distance=0), force dev0 version for unique wheel names if [ "$DIST" = "0" ]; then TAG=$(echo "$DESC" | cut -d- -f1) - HASH=$(echo "$DESC" | cut -d- -f3-) + HASH="g$(git rev-parse --short HEAD)" FORCE_VERSION="${TAG#v}.dev0+${HASH}" echo "Building at exact tag, forcing version to: $FORCE_VERSION" export SETUPTOOLS_SCM_PRETEND_VERSION="$FORCE_VERSION"