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: unassignedb...@nondot.org
          Reporter: stephen.guteka...@gmail.com
                CC: llvm-bugs@lists.llvm.org, m...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to