Skip to content

Harden Dockerfile release downloads; fix arm64 Neovim - #65

Open
kurowski wants to merge 3 commits into
mainfrom
atuin-direct-download
Open

kurowski wants to merge 3 commits into
mainfrom
atuin-direct-download

Conversation

@kurowski

@kurowski kurowski commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The scheduled Docker build failed (run 43812044506) on the arm64 atuin install step:

jq: error (at <stdin>:1): Cannot iterate over null (null)
curl: (2) no URL specified

The api.github.com/.../releases/latest lookup didn't return a release object, most likely because of the unauthenticated API rate limit. Atuin's release asset names haven't changed. The gh CLI install step used the same API lookup, so it could fail the same way.

  • atuin: downloads https://github.com/atuinsh/atuin/releases/latest/download/atuin-$(uname -m)-unknown-linux-gnu.tar.gz directly.
  • gh CLI: asset names include the version, so the step reads the version from the github.com/cli/cli/releases/latest redirect, then downloads releases/download/v$VERSION/gh_${VERSION}_linux_$ARCH.tar.gz.
  • Neovim: picks the tarball for the build's architecture (it was hard-coded to x86_64, so arm64 images got a binary that can't run) and extracts it to /opt/nvim. The symlink in devcontainer_on_create.sh now points there.
  • All four downloads (atuin, gh, Neovim, Terminus) now use curl -f, so an HTTP failure shows up as a clear curl error instead of a gzip/tar error.

I checked that the atuin, gh, and Neovim downloads produce the expected binary for both x86_64 and aarch64.

🤖 Generated with Claude Code

kurowski and others added 2 commits November 16, 2026 09:53
The GitHub API lookup for the latest release hit the unauthenticated
rate limit during a scheduled build, returning no assets and breaking
the arm64 image build. The direct download URL redirects to the latest
release without an API call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve the latest version from the releases/latest redirect instead of
the rate-limited API, since gh asset names include the version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kurowski kurowski changed the title Download atuin via releases/latest/download URL Download atuin and gh CLI without the GitHub API Nov 16, 2026
Neovim was hard-coded to the x86_64 tarball, so arm64 images got a
binary that can't run. Pick the tarball by architecture and extract it
to a fixed /opt/nvim path. Also add curl -f to the Neovim and Terminus
downloads so HTTP errors fail the build clearly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kurowski kurowski changed the title Download atuin and gh CLI without the GitHub API Harden Dockerfile release downloads; fix arm64 Neovim Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant