mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-12 19:50:57 +05:00
Make version bumps isolated and cache-free
This commit is contained in:
parent
e0596e78a8
commit
90e726b75e
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user