detached ab58c61

fix(install): resolve latest tag from GitHub API before downloading

The stable release path left VERSION="latest" as a literal string,
causing 404 errors since GitHub download URLs require exact tag names.
commit
ab58c61cc9e88fc3eaaefaa0ae935ffafa61af15
author
brice · · 2026-02-01 07:34 UTC
parent
2de9ffa
signature
unsigned
1 file · +12 -1
M install.sh +12 -1
@@ -62,8 +62,19 @@ if [ "$VERSION" = "latest" ] && [ -n "$GORDON_PRERELEASE" ]; then
6262 fi
6363 echo "Using pre-release version: ${VERSION}"
6464 elif [ "$VERSION" = "latest" ]; then
65- VERSION="latest"
6665 echo "Using latest stable release"
66+ # Resolve "latest" to actual tag name since GitHub download URLs require exact tags
67+ RELEASE_DATA=$(curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" 2>/dev/null || echo "")
68+ if [ -z "$RELEASE_DATA" ]; then
69+ echo "Error: Failed to fetch latest release information from GitHub API"
70+ exit 1
71+ fi
72+ VERSION=$(echo "$RELEASE_DATA" | grep -m1 '"tag_name"' | sed -E 's/.*"tag_name":\s*"([^"]+)".*/\1/')
73+ if [ -z "$VERSION" ]; then
74+ echo "Error: Could not determine latest stable version"
75+ exit 1
76+ fi
77+ echo "Resolved version: ${VERSION}"
6778 else
6879 echo "Using version: ${VERSION}"
6980 fi
@@ -62,8 +62,19 @@ if [ "$VERSION" = "latest" ] && [ -n "$GORDON_PRERELEASE" ]; then
62 fi62 fi
63 echo "Using pre-release version: ${VERSION}"63 echo "Using pre-release version: ${VERSION}"
64 elif [ "$VERSION" = "latest" ]; then64 elif [ "$VERSION" = "latest" ]; then
65- VERSION="latest"
66 echo "Using latest stable release"65 echo "Using latest stable release"
66+ # Resolve "latest" to actual tag name since GitHub download URLs require exact tags
67+ RELEASE_DATA=$(curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" 2>/dev/null || echo "")
68+ if [ -z "$RELEASE_DATA" ]; then
69+ echo "Error: Failed to fetch latest release information from GitHub API"
70+ exit 1
71+ fi
72+ VERSION=$(echo "$RELEASE_DATA" | grep -m1 '"tag_name"' | sed -E 's/.*"tag_name":\s*"([^"]+)".*/\1/')
73+ if [ -z "$VERSION" ]; then
74+ echo "Error: Could not determine latest stable version"
75+ exit 1
76+ fi
77+ echo "Resolved version: ${VERSION}"
67 else78 else
68 echo "Using version: ${VERSION}"79 echo "Using version: ${VERSION}"
69 fi80 fi

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close