-
Notifications
You must be signed in to change notification settings - Fork 36
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
Change storage url #21
Conversation
I can't get |
Example of curl request: curl -I https://storage.googleapis.com/golang/go1.2.2.linux-amd64.tar.gz
HTTP/1.1 200 OK The minimal version is 1.2.2 and current is 1.5.1 Installation: $ goenv install 1.3
...
Installed 1.3
$ goenv versions
1.2.2
1.3
1.5
1.5.1 |
Won't go >= 1.2 get downloaded from golang.org? |
I understood: $ curl -I https://golang.org/dl/go1.2.2.linux-amd64.tar.gz
HTTP/1.1 302 Found
Location: https://storage.googleapis.com/golang/go1.2.2.linux-amd64.tar.gz But if I checkout my changes I see: goenv install 1.5.1
curl: (22) The requested URL returned error: 404 Not Found
goenv: unable to install Go `1.5.1' from binary, download not available at https://go.googlecode.com/files/go1.5.1.linux-amd64.tar.gz It seems like error in vercomp function. Please try to install 1.5.1 version. |
I see problem: $ goenv help install
Usage: goenv install <version>
Versions should be in the form of N.N.N And after I try 1.5.1 as it written in documentation, func vercomp returns "1 1" instead "1" |
Ah ha! I'm fine with dropping support for the really old versions of go (1.0, 1.1), which means that this part of the install script could avoid doing vercomp at all and just download from golang.org. What do you think? |
Hi! I missed your comment :) I think is good idea to support new versions. Can I do anything to help you? |
I mean, instead of this: rtn=$(vercomp ${version} 1.2)
# URL to download from
if [ "$rtn" == "1" ]
then
download="http://golang.org/dl/go${version}.${platform}-${arch}${extra}.tar.gz"
else
download="https://storage.googleapis.com/golang/go${version}.${platform}-${arch}${extra}.tar.gz"
fi would this work?
|
Yes, it works!
|
Great! Can you try out #22 and make sure I didn't break something on that branch? |
Hey. is this brach merged master? |
goenv-install is it arrived failed to pull this pullrequest in darwin. What both modified and I have to pullrequest. |
I along with your intention. |
All golang sources from https://golang.org/dl/ placed in: https://stortage.googleapis.com/golang/...