[llvm-bugs] [Bug 44550] New: Versioned Go paths are not valid

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 14 18:58:48 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44550

            Bug ID: 44550
           Summary: Versioned Go paths are not valid
           Product: Website
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: General Website
          Assignee: unassignedbugs at nondot.org
          Reporter: stephen.gutekanst at gmail.com
                CC: llvm-bugs at lists.llvm.org, mike at sqlby.me

According to the bindings/go/README.txt documentation:

> The package path "llvm.org/llvm/bindings/go/llvm" can be used to
> import the latest development version of LLVM from SVN. Paths such as
> "llvm.org/llvm.v36/bindings/go/llvm" refer to released versions of LLVM.

`llvm.org/llvm/bindings/go/llvm` does appear to be a valid Go package path as
godoc.org is able to fetch the package contents for documentation generation:

https://godoc.org/llvm.org/llvm/bindings/go/llvm

But the versioned paths llvm.org/llvm.v36/bindings/go/llvm does not appear to
be valid:

https://godoc.org/llvm.org/llvm.v36/bindings/go/llvm

This is an issue with the llvm.org website which is not responding correctly to
the ?go-get=1 requests that are made. For example compare the `<meta>` tag
output of:

```sh
$ curl -L https://llvm.org/llvm/bindings/go/llvm?go-get=1
...
<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>
...
```

vs:

```sh
$ curl -L https://llvm.org/llvm.v36/bindings/go/llvm?go-get=1
...
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /llvm.v36/bindings/go/llvm was not found on this
server.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at llvm.org Port 443</address>
</body></html>
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200115/0a76502b/attachment.html>


More information about the llvm-bugs mailing list