fix: install jq on demand when resolving the latest version #9
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ensure-jq"
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?
Install jq on demand so the "latest" version path works on images without it.
Resolving nushell-version: latest pipes the GitHub releases API through jq. The openSUSE base runner does not ship jq, so the lookup failed. Add an ensure_jq helper that installs jq through whichever package manager is present (zypper, apt-get, apk, dnf) and is a no-op when jq already exists, so it complements baking jq into the base image rather than duplicating it. It runs only on the latest path; pinned versions never invoke jq.
Tested: sh -n parses clean.