ci-fix: transient hugo devcontainer feature download failure on run 35590832268
The tests run 35590832268 failed on test-devcontainer, which is a required check for check-ok-to-merge. The devcontainer build died installing the hugo feature:
#19 0.221 Installing Hugo...
#19 0.404 curl: (22) The requested URL returned error: 404
#19 0.407 ERROR: Feature "Hugo" (ghcr.io/devcontainers/features/hugo) failed to install!
The cause is outside this repo: the feature resolves VERSION=latest through an unauthenticated api.github.com call with no error handling, so a rate-limited or dropped response leaves the version string empty and the download URL 404s. Upstream devcontainers/features#458 has tracked exactly this since 2023 and is still open. Nothing in this repo changed to cause it, and no mitigation available here is clearly worth its cost, so this is filed as a diagnosis rather than a fix — see the escalation note below for what to do if it recurs.
Mechanism, evidence, and what to do on a recurrence
Mechanism
src/hugo/install.sh resolves a latest request like this:
if [ "${VERSION}" = "latest" ] || [ "${VERSION}" = "lts" ]; then
export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}')
fi
...
hugo_filename="hugo_${extended}${VERSION}_Linux-${arch}.tar.gz"
curl -fsSLO --compressed "https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${hugo_filename}"
curl -s suppresses errors and grep "tag_name" finds nothing in a rate-limit or error body, so VERSION silently becomes the empty string. The download URL degrades to .../releases/download/v/hugo__Linux-64bit.tar.gz, GitHub answers 404, and curl -f exits 22 — the exit code the build reported. The runner's shared, unauthenticated IP gets 60 api.github.com requests per hour, which is the usual way this trips.
Evidence it was the version string, not the asset name
Hugo's asset naming is unchanged: hugo_0.166.0_Linux-64bit.tar.gz exists on the current latest release, published 2026-09-09 — twelve days before this failure, so there was no publish-window race either. ${VERSION} is the only variable left in the URL.
Evidence it is not the repo
.devcontainer/has no commit since 6804c1e6, long before this run — the passing and failing builds used byte-identical config.test-devcontainerpassed on run 35526464838 the previous day. The job is path-gated, so it skips on most runs; that was the last run in which it actually executed.- The triggering commit was the tend workflow bump in #6353, which touches nothing the devcontainer build reads.
On a recurrence
If this shape shows up again within seven days, it stops being transient and wants a mitigation. Both candidates have a real cost, which is why neither was taken on a first occurrence:
- Pin the feature's version (
"ghcr.io/devcontainers/features/hugo:1": {"version": "0.166.0"}). Removes the API call entirely. The cost is drift:build-webinstalls Hugo viapeaceiris/actions-hugowith no pin, so the devcontainer would start building the website with an older Hugo than CI does, and nothing would bump it automatically — Dependabot's devcontainer support updates the feature tag, not its option values. - Retry the build step. Cheap to express, but it re-runs a multi-minute image build to paper over a sub-second API call.
Pinning is probably the right call if it recurs; it just needs a companion pin on the build-web side to stay honest.
Transient — closing as diagnosed.