Make version bumps isolated and cache-free

This commit is contained in:
Nick Sweeting 2026-07-29 06:56:18 -07:00
parent e0596e78a8
commit 90e726b75e
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ if [[ "$#" -ne 1 ]]; then
exit 2
fi
uv run python - "$1" <<'PY'
uv run --no-cache --no-project python - "$1" <<'PY'
from pathlib import Path
import json
import re
@ -41,4 +41,4 @@ package_path.write_text(json.dumps(package, indent=2) + '\n')
print(version)
PY
uv lock
uv lock --no-cache

View File

@ -2,7 +2,7 @@
set -Eeuo pipefail
[[ -z "$(git status --short -- uv.lock)" ]]
uv lock
uv lock --no-cache
if git diff --quiet -- uv.lock; then
echo "uv lock did not record the bumped ArchiveBox version" >&2
exit 1