From 90e726b75e5403bdc0fccf60eab02faa5ef2f523 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 29 Jul 2026 06:56:18 -0700 Subject: [PATCH] Make version bumps isolated and cache-free --- bin/bump_version.sh | 4 ++-- bin/bumpver_update_lock.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/bump_version.sh b/bin/bump_version.sh index 78fe31e6..f8993c93 100755 --- a/bin/bump_version.sh +++ b/bin/bump_version.sh @@ -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 diff --git a/bin/bumpver_update_lock.sh b/bin/bumpver_update_lock.sh index d3516d1e..bd0b3e30 100755 --- a/bin/bumpver_update_lock.sh +++ b/bin/bumpver_update_lock.sh @@ -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