File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments