dist.sh reads the version with cargo pkgid, not python3 (refs #59) 99cdbaeea274
The build image has no Python; the dist job failed on it.
- Author
- Andy McCall @andymccall <[email protected]>
- When
- · 2026-10-02 20:58 UTC
- Signature
- ✔ signed by Andy McCall
- Hash
99cdbaeea274a3fb2e503f36fb928dea63ba2cc9dd5c7b2d790de467397d9983- Depends on
- 25c6adfaa559
- Depended on by
- nothing yet
- In bookmarks
- agents-in-readme bare-hashes carried-not-removed carry-identical doctor-trust identical-sides keyless-tags main merge-remote-bookmark only-help-103 paths-for-resolutions-and-amend push-notes show-stat subrepo-pin-state switch-says
- In tags
- v0.10.0 v0.11.0 v0.3.1 v0.4.0 v0.4.1 v0.4.2 v0.4.3 v0.4.4 v0.4.5 v0.4.6 v0.5.0 v0.5.1 v0.6.0 v0.7.0 v0.8.0 v0.9.0
- Edits
- 2 atoms, 0 tree operations, 1 file
Browse the tree at this change
modified scripts/dist.sh +1 −1
| … | 25 unchanged lines |
||
| 26 | 26 | DOCS=(README.md LICENSE) |
|
| 27 | 27 | ||
| 28 | 28 | cd "$(dirname "$0")/.." |
|
| 29 | - | VERSION="${1:-$(cargo metadata --no-deps --format-version 1 | python3 -c "import json,sys; print(next(p['version'] for p in json.load(sys.stdin)['packages'] if p['name']=='$PKG'))")}" |
|
| 29 | + | VERSION="${1:-$(cargo pkgid -p "$PKG" | sed 's/.*[#@]//')}" |
|
| 30 | 30 | VERSION="${VERSION#v}" |
|
| 31 | 31 | OUT="target/dist/$VERSION" |
|
| 32 | 32 | rm -rf "$OUT" && mkdir -p "$OUT" |
|
| … | 64 unchanged lines |