Skip to content

Commit cdaa042

Browse files
committed
[BugFix] fix build
1 parent 3a3f1b8 commit cdaa042

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/dist.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
timeout-minutes: 30
4646
env:
4747
NO_VERSION_LABEL: ${{ github.event_name == 'release' && 'OFF' || 'ON' }}
48+
# NO_GIT_VERSION disables embedding the git commit hash in version metadata.
49+
# Otherwise, the version of the SDist has a git hash suffix (e.g., 0.1.0+gitabcdef12),
50+
# but the package built from the SDist has no way to get the git hash (it is not a git repo),
51+
# leading to inconsistent versions between SDist and built packages (+gitabcdef12 vs. +gitunknown).
52+
NO_GIT_VERSION: "ON"
4853

4954
steps:
5055
- name: Checkout repository
@@ -116,11 +121,6 @@ jobs:
116121
runs-on: ${{ matrix.target.runner }}
117122
env:
118123
NO_VERSION_LABEL: ${{ github.event_name == 'release' && 'OFF' || 'ON' }}
119-
# NO_GIT_VERSION disables embedding the git commit hash in version metadata.
120-
# Otherwise, the version of the SDist has a git hash suffix (e.g., 0.1.0+gitabcdef12),
121-
# but the package build from the SDist has no way to get the git hash (it is not a git repo),
122-
# leading to inconsistent versions between SDist and built packages (+gitabcdef12 vs. +gitunknown).
123-
NO_GIT_VERSION: "ON"
124124

125125
steps:
126126
- name: Checkout repository

0 commit comments

Comments
 (0)