Open jedrekdomanski opened 1 year ago
I can see that you're currently using go1.4. I was on something like go1.10. I had a similar issue when I attempted to get the latest version earlier today and I had to install an intermediate package (go1.17).
gvm install go1.17
gvm use go1.17
Then followed by the version I wanted
gvm install go.1.20
gvm use go1.20
This seemed to resolve any issues.
I can see that you're currently using go1.4. I was on something like go1.10. I had a similar issue when I attempted to get the latest version earlier today and I had to install an intermediate package (go1.17).
gvm install go1.17 gvm use go1.17
Then followed by the version I wanted
gvm install go.1.20 gvm use go1.20
This seemed to resolve any issues.
I am running a MaOS and never installed any go version before and in fact I don't have any go versions installed at the moment.
Oh I see. I misread the error message. Looks like all you need to do is add the -B flag. I repro-ed on a clean docker image and tried a different command - leading to resolution.
So use the binary install: gvm install go1.20 -B
followed by gvm use go 1.20
And if you haven't already, make sure to install the recommended packages first.
if use -B, got ERROR: Binary Go unavailable for this platform
Oh I see. I misread the error message. Looks like all you need to do is add the -B flag. I repro-ed on a clean docker image and tried a different command - leading to resolution.
So use the binary install:
gvm install go1.20 -B
followed bygvm use go 1.20
And if you haven't already, make sure to install the recommended packages first.
I was on Ubuntu 22, had the same issue. No problem on my MacOS. The '-B' option you suggested worked for me, thank you so much!
suggest: goenv
@wakaryry @DrkCoater @jedrekdomanski @Krueladin kindly try this GO Version Manager: https://github.com/ankitcharolia/goenv
I tried to install the latest version
go1.20.2
and get the following errorI tried to debug it and it looks like the source code is not copied from
$GO_CACHE_PATH
to$GO_INSTALL_ROOT
The $version, $GO_CACHE_PATH and $GO_INSTALL_ROOT is there,
echo
ing proves itprints
The script fails at
I'm not sure why the source code is not copied over to the
.gvm/gos
The logs say