fix: force _version.py regeneration on install and clean

_version.py is gitignored but persists on disk with a stale version.
Delete it before uv sync so setuptools-scm regenerates it from the
current git tag. Also remove it in make clean for consistency.
This commit is contained in:
Justin Bollinger
2026-03-20 10:08:56 -04:00
parent b4b284cf50
commit a9cad18949
+2 -1
View File
@@ -94,6 +94,7 @@ install: submodules
exit 1; \
fi
@command -v uv >/dev/null 2>&1 || { echo "uv not found. Installing uv..."; curl -LsSf https://astral.sh/uv/install.sh | sh; }
@rm -f hate_crack/_version.py
@UV_BIN=$$(command -v uv 2>/dev/null || echo "$$HOME/.local/bin/uv"); \
"$$UV_BIN" sync
@mkdir -p "$${XDG_BIN_HOME:-$$HOME/.local/bin}"
@@ -122,7 +123,7 @@ dev-reinstall: uninstall dev-install
clean:
-$(MAKE) -C hashcat-utils clean
-@if [ -f .gitmodules ]; then git submodule deinit -f --all; fi
rm -rf .pytest_cache .ruff_cache build dist *.egg-info
rm -rf .pytest_cache .ruff_cache build dist *.egg-info hate_crack/_version.py
rm -rf ~/.cache/uv
find . -name "__pycache__" -type d -prune -exec rm -rf {} +