golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
122.58k stars 17.48k forks source link

x/pkgsite: not updating my package? #41351

Open OneOfOne opened 3 years ago

OneOfOne commented 3 years ago

This is kinda related to #41278.

Looking on https://pkg.go.dev/go.oneofone.dev/ta@master?tab=versions, it's only listing 2 versions out of 5, also it won't show @master.

I tried GOPROXY=https://proxy.golang.org GO111MODULE=on go get go.oneofone.dev/ta@master https://proxy.golang.org/go.oneofone.dev/ta/@latest shows v0.0.5, which is correct. https://godoc.org/go.oneofone.dev/ta returns "Internal server error."

It is possible there's something wrong with my server setup, there's nothing that shows how to debug it.

OneOfOne commented 3 years ago

After a lot of trial and error I figured out it was because my go-import header had a /, however it doesn't explain why sometimes it works and most of the times it doesn't and why it only effects pkg.dev.go.

works: <meta name="go-import" content="go.oneofone.dev/ta git https://github.com/OneOfOne/ta"> doesn't: <meta name="go-import" content="go.oneofone.dev/ta git https://github.com/OneOfOne/ta/">

So I'm leaving this open for now, since it is still a bug, at the very least it should give an error or a warning.