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

Support built in golang version manager. #4740

Open
BrownNPC opened this issue Feb 16, 2025 · 1 comment
Open

Support built in golang version manager. #4740

BrownNPC opened this issue Feb 16, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@BrownNPC
Copy link

Tinygo is very picky about the name of the go compiler executable.
It requires the command to run the go compiler to be go but sometimes that can cause issues if the version is not supported by tinygo.

Go already has a built-in way to manage different versions of the compiler.
https://go.dev/doc/manage-install#installing-multiple

But the compilers installed using this method have a different binary name. Example: go1.21.3

I propose that tiny go should be able to detect Golang versions installed using this method automatically.

@mattjohnsonpint
Copy link

This would be helpful at the moment, since TinyGo latest 0.35.0 doesn't support Go latest 1.24. I can't seem to find any way to tell TinyGo to use the previous Go 1.23.6 version that I've installed via the method in the docs linked above. Setting GOROOT doesn't help. Adding the previous version's bin folder to the path doesn't help. The only way seems to be to uninstall Go 1.24 and reinstall Go 1.23.6.

@deadprogram deadprogram added the enhancement New feature or request label Feb 22, 2025
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

3 participants