fix: a gh: deb missing from the latest release comes from the newest one that has it
ghostty-ubuntu 1.4.0 builds for 26.04 and later only, so apps/ghostty failed on every fresh 24.04 box with "no release asset matching". Fall back to the release list, newest first.
This commit is contained in:
1 parent
0a5ec74fa5
commit
d8b0e22052
3 files changed
+25
No files matched your search
@@ -1232,6 +1232,16 @@ is "a failed download installs nothing" "0" \
|
||||
"$(grep -c 'apt-get install -y .*\.deb' "$LOG" || true)"
|
||||
has "…and is reported against the package" "apps/chrome" "$out"
|
||||
|
||||
# ghostty-ubuntu 1.4.0 dropped the 24.04 build, so `latest` carries no asset
|
||||
# for this machine and apps/ghostty failed on every fresh 24.04 box. The newest
|
||||
# release that does carry one is what gets installed.
|
||||
GHV=$( . /etc/os-release 2>/dev/null; printf '%s' "${VERSION_ID:-}" )
|
||||
newbox; pick apps/ghostty
|
||||
out=$(box install 2>&1 | plain || true)
|
||||
has "a gh: deb missing from latest comes from the newest release that has it" \
|
||||
"https://example.invalid/ghostty_9.8-0.ppa1_amd64_$GHV.deb" "$(cat "$LOG")"
|
||||
hasnt "…and is not reported as missing" "no release asset matching" "$out"
|
||||
|
||||
printf '\n\033[1mthe neovim tarball lands where the symlink points\033[0m\n'
|
||||
# Four commands name the same directory: the rm, the mkdir, tar's -C, and the
|
||||
# symlink's target. A typo in any one of them installs nothing and leaves a
|
||||
|
||||
Reference in new issue
Block a user