OXYGENHUB

dist.sh reads the version with cargo pkgid, not python3 (refs oxygen#59) c33dbd9a0d38

Author
Andy McCall @andymccall <[email protected]>
When
· 2026-10-02 20:58 UTC
Signature
✔ signed by Andy McCall
Hash
c33dbd9a0d38f03313995c1259c16adbd34571f06efe1a71438b51783f1d7b36
Depends on
99ca93d60bca
Depended on by
nothing yet
In bookmarks
api-unknown-fields cancel-landed-runs clear-waiting close-proposal-140 diffusion-pin-bookmark draft-ready image-check job-waits main oh-comment-body-file proposal-list-fast run-one-job wiki-says-so
In tags
v0.3.1 v0.4.0 v0.4.1 v0.4.2 v0.5.0 v0.5.1 v0.5.2 v0.6.0 v0.6.1 v0.7.0 v0.8.0 v0.9.0 v0.9.1 v0.9.11 v0.9.15 v0.9.16 v0.9.19 v0.9.2 v0.9.20 v0.9.21 v0.9.22 v0.9.23 v0.9.24 v0.9.3 v0.9.4 v0.9.5 v0.9.6 v0.9.7 v0.9.8 v0.9.9
Edits
2 atoms, 0 tree operations, 1 file

Browse the tree at this change

modified scripts/dist.sh +1 −1
…
24 unchanged lines
25 25
DOCS=(README.md LICENSE docs/oh.md)
26 26
27 27
cd "$(dirname "$0")/.."
28 -
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'))")}"
28 +
VERSION="${1:-$(cargo pkgid -p "$PKG" | sed 's/.*[#@]//')}"
29 29
VERSION="${VERSION#v}"
30 30
OUT="target/dist/$VERSION"
31 31
rm -rf "$OUT" && mkdir -p "$OUT"
…
64 unchanged lines