On Sat, Dec 31, 2016 at 4:22 AM, Peter Waller <pe...@pdftables.com> wrote:
> I don't know about you, but when I do `go get`, go get uses https, not > HTTP, and the HTTPS link gives a 404 not found. > Yes, go get defaults to https, but depending on whether the -insecure flag is passed, it then falls back to http (see httpsOrHTTP <https://github.com/golang/go/blob/19adf8aeaae7c898e8efeab18e3162c3807a8756/src/cmd/go/http.go#L73>). But that only happens when there is an error from httpClient.Get, which would happen if they didn't have https configured at all. In the case of a 404, it doesn't fall back to http, so looking more closely I agree that this is a bit odd. Trying to refresh the package on godoc.org results in "Error refreshing package: Timeout getting package files from the version control system." so it does at least agree that it can't fetch the package anymore. So definitely something for the llvm.org admins to fix. > > Additionally, when I follow the link in my browser to > http://llvm.org/llvm/bindings/go/llvm - I get redirected to the LLVM > homepage, which makes it hard to discover how to use the bindings if I'm > just looking at an import URL. > > $ curl -I http://llvm.org/llvm/bindings/go/llvm/?go-get=1 > HTTP/1.1 200 OK > Date: Sat, 31 Dec 2016 12:09:29 GMT > Server: Apache/2.2.22 (Ubuntu) > Last-Modified: Tue, 14 Oct 2014 01:06:10 GMT > ETag: "286e03f-15d-505579eea4480" > Accept-Ranges: bytes > Content-Length: 349 > Vary: Accept-Encoding > Content-Type: text/html > > $ curl -I https://llvm.org/llvm/bindings/go/llvm/?go-get=1 > HTTP/1.1 404 Not Found > Date: Sat, 31 Dec 2016 12:09:34 GMT > Server: Apache/2.2.22 (Ubuntu) > Vary: Accept-Encoding > Content-Type: text/html; charset=iso-8859-1 > > > On 27 December 2016 at 18:21, Will Norris <w...@willnorris.com> wrote: > >> % curl http://llvm.org/llvm/bindings/go/llvm/?go-get=1 >> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" >> "http://www.w3.org/TR/html4/strict.dtd"> >> <html> >> <head> >> <meta http-equiv="refresh" content="0; url=/"> >> <meta name="go-import" content="llvm.org/llvm svn >> https://llvm.org/svn/llvm-project/llvm/trunk"> >> </head> >> <body> >> Redirecting to <a href="/">llvm.org</a>. >> </body> >> </html> >> >> On Tue, Dec 27, 2016 at 9:36 AM, Peter Waller <pe...@pdftables.com> >> wrote: >> >>> godoc.org shows the documentation, but go get currently gives a 404 if >>> I follow the instructions. Has it moved again? >>> >>> [404] https://llvm.org/llvm/bindings/go/llvm >>> [works] https://godoc.org/llvm.org/llvm/bindings/go/llvm >>> >>> On 21 March 2015 at 08:28, Andrew Wilkins <axw...@gmail.com> wrote: >>> >>>> >>>> On Sat, 21 Mar 2015 at 14:55 <jiyinyiy...@gmail.com> wrote: >>>> >>>>> Moved again?... >>>>> >>>> >>>> The old package is still there, but it was recently merged into the >>>> LLVM repository, and that is where development happens. Info on building >>>> the bindings here: >>>> http://llvm.org/svn/llvm-project/llvm/trunk/bindings/go/README.txt >>>> >>>> Cheers, >>>> Andrew >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "golang-nuts" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to golang-nuts+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.