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

ability to specifiy a go language version #1179

Open
john-fwss opened this issue May 2, 2024 · 1 comment
Open

ability to specifiy a go language version #1179

john-fwss opened this issue May 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@john-fwss
Copy link

john-fwss commented May 2, 2024

CONTEXT

Other languages have the ability to specify a specific version of the language to be used in the devenv.nix file.

Example:
languages.python.version = "3.11.3";
works great, love it.

Go does not, and it is frustrating (and not best practice according to support channel in discord) to try and pin specific commit hashes of older versions.

Go has the package language option (which is great that its there) here:
https://devenv.sh/reference/options/#languagesgopackage

but no examples of what a properly formatted input looks like. seems to be happy with pkgs.go_1_22 and pkgs.go_1_21 (after a lot of trial and error) but no others.

REQUEST

make golang compatible with specific pinned language versions, just like many other languages already supported are.

@john-fwss john-fwss added the enhancement New feature or request label May 2, 2024
@domenkozar
Copy link
Member

Someone needs to create nixpkgs-go with all the versions packaged :)

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

No branches or pull requests

2 participants