Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: use non-versioned buildGoModule to support out-of-band compilers #1570

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sandydoo
Copy link
Member

@sandydoo sandydoo commented Nov 3, 2024

If you set languages.go.package to a version of the go compiler that doesn't yet exist in the nixpkgs input, you'll get an evaluation error on buildGoXXXModule because the function for that specific version doesn't exist.

I couldn't find anything in the docs preventing us from using the base buildGoModule and override the go argument as we already do.

Fixes #1568.

If you set `languages.go.package` to a version of the go compiler that
doesn't yet exist in the `nixpkgs` input, you'll get an evaluation
error on `buildGoXXXModule` because the function for that specific
version doesn't exist.

I couldn't find anything in the docs preventing us from using the base
`buildGoModule` and override the `go` argument as we already do.
@sandydoo sandydoo added the enhancement New feature or request label Nov 3, 2024
Copy link

Deploying devenv with  Cloudflare Pages  Cloudflare Pages

Latest commit: f7ab477
Status: ✅  Deploy successful!
Preview URL: https://3a13056a.devenv.pages.dev
Branch Preview URL: https://fix-go-builder-override.devenv.pages.dev

View logs

@sandydoo
Copy link
Member Author

sandydoo commented Nov 6, 2024

This works. The bigger issue is that older tools fail to compile with newer versions of go. That makes updating just languages.go.package non-viable if we have to recompile all the tools against this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GO version 1.23 not available
1 participant