fix: force reinstall from local checkout to bypass pip cache
Some checks failed
CI / test WordOps (ubuntu-22.04) (push) Has been cancelled
CI / test WordOps (ubuntu-24.04) (push) Has been cancelled

pip install -U skips reinstall when version number hasn't changed,
causing stale code to remain. Use --force-reinstall --no-cache-dir
to ensure local source is always installed fresh.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 08:16:32 +01:00
parent 35efce33c5
commit 15e70efa01

View File

@@ -553,7 +553,8 @@ wo_install() {
fi fi
if [ -f ./setup.py ]; then if [ -f ./setup.py ]; then
/opt/wo/bin/pip install -U . --upgrade-strategy=eager /opt/wo/bin/pip install --force-reinstall --no-cache-dir --no-deps . 2>/dev/null
/opt/wo/bin/pip install . --upgrade-strategy=eager
elif [ "$wo_branch" = "master" ]; then elif [ "$wo_branch" = "master" ]; then
/opt/wo/bin/pip install -U wordops --upgrade-strategy=eager /opt/wo/bin/pip install -U wordops --upgrade-strategy=eager
else else