mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-11-07 14:38:23 -10:00
fix(ci): pin the fleet install to the /usr/local prefix
Diagnostics on hk-4/hk-5 showed root's npm global prefix there is /usr/local/lib/nodejs/node-v22.23.2-linux-x64, so `sudo npm install -g` updated that tree while the pools kept resolving the stale /usr/local/bin/qwen -> /usr/local/lib/node_modules copy (still 0.22.3). Install with --prefix /usr/local so every pool updates the copy the runner service resolves. Co-authored-by: Qwen-Coder <[email protected]>
This commit is contained in:
1 parent
290d730243
commit
c64936d6f6
1 file changed
+6
-1
@@ -103,7 +103,12 @@ jobs:
|
||||
PKG_DIR='/usr/local/lib/node_modules/@qwen-code'
|
||||
for attempt in 1 2 3; do
|
||||
sudo rm -rf "${PKG_DIR}"/.qwen-code-* 2>/dev/null || true
|
||||
if sudo env -u NPM_CONFIG_PREFIX npm install -g --registry=https://registry.npmjs.org "@qwen-code/qwen-code@${VERSION}"; then
|
||||
# --prefix pins the install to /usr/local: on the hk-4/hk-5
|
||||
# machines root's npm global prefix is a custom Node directory
|
||||
# (/usr/local/lib/nodejs/node-v22.23.2-linux-x64), so without
|
||||
# it the update landed there while the pool kept resolving the
|
||||
# stale /usr/local/bin/qwen -> /usr/local/lib/node_modules copy.
|
||||
if sudo env -u NPM_CONFIG_PREFIX npm install -g --prefix /usr/local --registry=https://registry.npmjs.org "@qwen-code/qwen-code@${VERSION}"; then
|
||||
exit 0
|
||||
fi
|
||||
if [[ "${attempt}" -lt 3 ]]; then
|
||||
|
||||
Reference in new issue
Block a user