What is the URL of the page with the issue?
https://pkg.go.dev/slatedb.io/slatedb-go
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Screenshot
No response
What did you do?
My package module documentation is not visible at:
https://pkg.go.dev/slatedb.io/slatedb-go
https://slatedb.io/slatedb-go serves:
<!DOCTYPE html><html lang="en"> <head><meta name="go-import" content="slatedb.io/slatedb-go git https://github.com/slatedb/slatedb slatedb-go/go"><meta name="go-source" content="slatedb.io/slatedb-go https://github.com/slatedb/slatedb https://github.com/slatedb/slatedb/tree/main/slatedb-go/go{/dir} https://github.com/slatedb/slatedb/blob/main/slatedb-go/go{/dir}/{file}#L{line}"><title>SlateDB Go module</title><script type="module" src="/_astro/page.7qqag-5g.js"></script></head> <main> <h1>SlateDB Go module</h1> <p>
--
Vanity import path for the Go module. Repository:
<a href="https://github.com/slatedb/slatedb/tree/main/slatedb-go/go">github.com/slatedb/slatedb/slatedb-go/go</a> </p> </main> </html>
Of note are these two meta tags:
<meta name="go-import" content="slatedb.io/slatedb-go git https://github.com/slatedb/slatedb slatedb-go/go">
<meta name="go-source" content="slatedb.io/slatedb-go https://github.com/slatedb/slatedb https://github.com/slatedb/slatedb/tree/main/slatedb-go/go{/dir} https://github.com/slatedb/slatedb/blob/main/slatedb-go/go{/dir}/{file}#L{line}">
The go-import
includes the new subdir
field from Go 1.25.0. I have tagged https://github.com/slatedb/slatedb with slatedb-go/go/v0.8.0.
This works:
GOPRIVATE=slatedb.io go get slatedb.io/slatedb-go/@v0.8.0
go: downloading slatedb.io/slatedb-go v0.8.0
go: added slatedb.io/slatedb-go v0.8.0
This works:
% go get slatedb.io/slatedb-go@v0.8.0
go: downloading slatedb.io/slatedb-go v0.8.0
This does not work:
% GOPROXY=https://proxy.golang.org GO111MODULE=on go get slatedb.io/slatedb-go@v0.8.0
go: slatedb.io/slatedb-go@v0.8.0: reading https://proxy.golang.org/slatedb.io/slatedb-go/@v/v0.8.0.mod: 404 Not Found
server response: not found: slatedb.io/slatedb-go@v0.8.0: unrecognized import path "slatedb.io/slatedb-go": parse https://slatedb.io
I also tried the web UI to trigger a fetch:
https://pkg.go.dev/slatedb.io/slatedb-go
Doesn't work either.
I think either pkg.go.dev, sum.golang.org, or proxy.golang.org is in some weird state.
What did you see happen?
Just says Oops! We couldn't find “slatedb.io/slatedb-go”.
What did you expect to see?
I expected to click the "request slatedb.io/slatedb-go" button and have it work.
Comment From: gabyhelp
Related Issues
- x/pkgsite: Can't see package on pkg.go.dev but can download via go get #42273 (closed)
- x/pkgsite: packages with `go 1.21.0` in go line can't be fetch by pkg.go.dev #62031 (closed)
- proxy.golang.org: 410 gone on public repository when doing a tool import #41887 (closed)
- proxy.golang.org: problems requesting ssh based git site to pkg.go.dev #59354 (closed)
- x/pkgsite: does not find package after module renaming #44713 (closed)
- x/pkgsite: Support pseudoversion semver-timestamp-commit_hash on about pages #59054 (closed)
- x/pkgsite/cmd/frontend: no longer loads stdlib in proxy mode #63249
- doc: incomplete documentation for vanity import paths in combination with Go modules #61024
- go.dev: easy way to update packages #39336 (closed)
- x/pkgsite: -gorepo flag does not work #68533 (closed)
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Comment From: seankhliao
Probably a different go-import parser for proxy vs cmd/go?:
GOPRIVATE=slatedb.io go get -x -v slatedb.io/slatedb-go/@v0.8.0
# get https://slatedb.io/slatedb-go?go-get=1
# get https://slatedb.io/?go-get=1
# get https://slatedb.io/?go-get=1: 200 OK (0.196s)
# get https://slatedb.io/slatedb-go?go-get=1: 200 OK (0.304s)
get "slatedb.io/slatedb-go": found meta tag vcs.metaImport{Prefix:"slatedb.io/slatedb-go", VCS:"git", RepoRoot:"https://github.com/slatedb/slatedb", SubDir:"slatedb-go/go"} at //slatedb.io/slatedb-go?go-get=1
vs
https://proxy.golang.org/slatedb.io/slatedb-go/@v/v0.8.0.info
not found: slatedb.io/slatedb-go@v0.8.0: unrecognized import path "slatedb.io/slatedb-go": parse https://slatedb.io/slatedb-go?go-get=1: no go-import meta tags ()
ref #34055
cc @golang/command-line @golang/tools-team
Comment From: jba
pkgsite certainly uses a different parser, and it has not been updated for subdir. I filed #75258.