You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from my own testing, a folder like this is built and indexed:
_hello
a folder like this is built, but optionally indexed:
internal
and these are not built or indexed:
.hello
testdata
I think this is it:
// ignoredByGoTool reports whether the given import path corresponds// to a directory that would be ignored by the go tool.//// The logic of the go tool for ignoring directories is documented at// https://golang.org/cmd/go/#hdr-Package_lists_and_patterns://// Directory and file names that begin with "." or "_" are ignored// by the go tool, as are directories named "testdata".//// However, even though `go list` and other commands that take package// wildcards will ignore these, they can still be imported and used in// working Go programs. We continue to ignore the "." and "testdata"// cases, but we've seen valid Go packages with "_", so we accept those.
Proposal Details
opening new issue since previous issue was closed in error.
Proposal Details
it seems currently items ignored by the
pkgsite
tool are not documented. I did this search:here:
https://cs.opensource.google/go
from my own testing, a folder like this is built and indexed:
a folder like this is built, but optionally indexed:
and these are not built or indexed:
I think this is it:
https://github.com/golang/pkgsite/blob/24c36df908d0532d634e80b2b0598474b661736a/internal/fetch/package.go#L270-L282
another user said behavior is same as here:
https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns
but as can be seen in the above code, thats not true regarding
_
The text was updated successfully, but these errors were encountered: