fix: install to /usr/local/bin so the requested version wins on PATH #8
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/install-to-usr-local-bin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix the action picking up a preinstalled nu instead of the requested version.
The openSUSE base runners ship a preinstalled nu in /usr/local/bin, which precedes /usr/bin on PATH. The action installed to /usr/bin, so the preinstalled copy shadowed the version just installed: a bare
nuresolved to the preinstalled one in the action's output step, in the test assertion, and for downstream consumers. The visible symptom was the test reporting the runner's 0.112.2 when 0.100.0 was requested.Install to /usr/local/bin instead, so the requested version overrides any preinstalled copy and resolves first on PATH.
Build the plugin glob from INSTALL_DIR (passed through the environment as $env.INSTALL_DIR) rather than a hardcoded /usr/bin path. This keeps $it and $nu literal inside the single-quoted nu command and resolves the existing TODO about the directory not expanding. Verified the glob and its filter run under nu 0.112.2.
Tested: sh -n parses clean.