fix(ci): add setup-go back for Hugo module downloads #16

Merged
radu merged 1 commit from fix/ci-add-go into main 2026-07-20 10:46:07 +00:00
Owner

The CI build runs successfully through checkout and Hugo install steps, then fails at the build step with:

Error: failed to load modules: binary with name "go" not found in PATH

Hugo loads the Stack theme as a Go module (via go.mod) and needs the go binary in PATH to download modules. This restores actions/setup-go@v7 (which resolves through Forgejo's action registry, not github.com).

The CI build runs successfully through checkout and Hugo install steps, then fails at the build step with: Error: failed to load modules: binary with name "go" not found in PATH Hugo loads the Stack theme as a Go module (via go.mod) and needs the `go` binary in PATH to download modules. This restores `actions/setup-go@v7` (which resolves through Forgejo's action registry, not github.com).
Hugo needs the go binary in PATH to download Go module dependencies
(the Stack theme is loaded via go.mod). The build was failing at
"Error: failed to load modules: binary with name 'go' not found".
radu merged commit 9cfba71097 into main 2026-07-20 10:46:07 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
radu/blog!16
No description provided.