Commit d5d812a
authored
🐛 fix(release): use double quotes for tag variable expansion (#477)
The release workflow's "Create temporary tag for hatch-vcs" step uses
single quotes around `${STEPS_V_OUTPUTS_VERSION}`, which prevents bash
from expanding the variable. The tag is created as the literal string
`${STEPS_V_OUTPUTS_VERSION}` instead of e.g. `4.9.5`. Because
`hatch-vcs` never finds a valid version tag on the commit, it falls back
to `git describe` and produces a version like `4.9.5.dev13+g104d28b48`.
PyPI then rejects the upload with `400 Bad Request` since local version
identifiers aren't allowed.
Switching to double quotes fixes the expansion so the temporary tag
matches the computed version and `hatch-vcs` produces a clean release
version.1 parent c2b0cee commit d5d812a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments