goenv icon indicating copy to clipboard operation
goenv copied to clipboard

Cache install doesn't seem to work

Open JackLiar opened this issue 6 years ago • 3 comments
trafficstars

➜  .goenv git:(master) ls cache
go1.12.4.darwin-amd64.tar.gz
➜  .goenv git:(master) goenv install 1.12.4
Downloading go1.12.4.darwin-amd64.tar.gz...
-> https://dl.google.com/go/go1.12.4.darwin-amd64.tar.gz
^C%

it still needs to download the archive file

gone version: 2.00beta9

JackLiar avatar Apr 25 '19 01:04 JackLiar

it seems like that the $package_filename parameter passed to reuse_existing_tarball function is wrong

what we expected is go1.12.4.darwin-amd64.tar.gz, but actually it is: "Go Darwin 64bit 1.12.4.tar.gz"

ps: correct the actual value of $package_filename

JackLiar avatar Apr 25 '19 23:04 JackLiar

@JackLiar Thank you for your findings!

I'll try to take a look at it tomorrow.

syndbg avatar Apr 26 '19 01:04 syndbg

I've found the problem source

the first parameter passed to install_xxx_64bit function is wrong, all we need to do is to replace all these parameters in all the plugins/go-build/share/go-build/version file

for example:

"Go Darwin 64bit 1.12.4" --> "go1.12.4.darwin-amd64"

hope u would fix it soon :)

JackLiar avatar Apr 28 '19 08:04 JackLiar