You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to set up gopages at work, where we use CircleCI to build and deploy our code.
I set up a Makefile that runs gopages with a specific version of Go, which when expanded looks like this:
env GOENV=/Users/erazemk/.../tools/go/go1.23.1/env GOROOT=/Users/erazemk/.../tools/go/go1.23.1/go /Users/erazemk/.../tools/go/go1.23.1/go/bin/go run github.com/johnstarich/go/gopages@latest \
-out docs \
-brand-title "<repo>" \
-brand-description "<repo>" \
-gh-pages \
-internal
Generating godoc static pages for module... github.com/<repo>
Committing and pushing changes to gh-pages branch...
When I run this locally, everything works fine, since my system version of go is also up to date. But when running in CircleCI, I get the error:
pipe: pipe: err: exit status 1: stderr: go: go.mod requires go >= 1.22.4 (running go 1.21.5; GOTOOLCHAIN=local)
This makes me think that gopages calls a subprocess, but doesn't also propagate the env.
What can I do to fix this?
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to set up gopages at work, where we use CircleCI to build and deploy our code.
I set up a Makefile that runs gopages with a specific version of Go, which when expanded looks like this:
When I run this locally, everything works fine, since my system version of go is also up to date. But when running in CircleCI, I get the error:
This makes me think that gopages calls a subprocess, but doesn't also propagate the env.
What can I do to fix this?
The text was updated successfully, but these errors were encountered: