Closed bentito closed 1 month ago
Having the same error: "ERROR: Invalid or corrupt Go version", with the latest master.
Using gvm use [VERSION] --default
fixes the issue.
@bentito @dannywillems kindly try this out. I am using this goenv: https://github.com/ankitcharolia/goenv.
Using
gvm use [VERSION] --default
fixes the issue.
That works for me, thanks, dude!
So we can close this issue, right?
I think can close, yep
MacOS: 14.0 GVM Verson: 1.0.22 shell: zsh
I may need some help figuring out what went wrong, because although I think I fixed my install with a workaround, I'm not sure what broke or why doing what I did fixed it:
After running the install script, the inserted command in my
.zshrc' was causing this error all the time:
ERROR: Invalid or corrupt Go version`And I think I correctly traced the root cause to this being missing:
So I did this from
.gvm/environments
:and that seems to have fixed the erroring. Though I had to remove that symlink and run through a few iterations of
gvm use goX.Y --default
to properly create$GVM_ROOT/environments/default
in order to have the default functionality work.probably unrelated: I installed GVM by installing binary version of go1.18, then normal install of go1.21.2 and I rm'ed and reinstalled via the installer script a few times.
If someone can explain this better such that a fix to the installer can be proposed I'd be happy to make a PR