New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/doc: duplicated component in package path confounds partial package matching #25478
Comments
If you just call So the proper way to use |
understood, and this isn't hugely important, but i do think go's tooling is one of its bright points, so.. "github.com/go-gl/gl" isn't even a package, there is only one package 'gl' installed, doesn't seem that hard for it to just keep going until it found a package, or, seems like a tree search leaf first would work, mostly. also; if i already had a package 'gl' which was reporting documentation with 'gl', installing the above package, as a side-effect, breaks that, that's surprising to me, i would have hoped package installation was completely isolated. in some sort of shared development environment i might not be aware of other installs until it breaks. |
Seems like it should be a fairly simple fix: if the directory suffix matches but the path can't be imported, keep searching. Some starting points, if you'd like to give it a try: Lines 242 to 247 in 5776bd5
Lines 341 to 357 in 5776bd5
|
Change https://golang.org/cl/114295 mentions this issue: |
What version of Go are you using (
go version
)?1.10.2
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
go get github.com/go-gl/gl/v3.3-core/gl
go doc gl
What did you expect to see?
documentation for gl package
What did you see instead?
doc: no buildable Go source files in ../go/src/github.com/go-gl/gl
exit status 1
(notice path truncated)
temp fixed by renaming /go/src/github.com/go-gl/gl -> /go/src/github.com/go-gl/GL
The text was updated successfully, but these errors were encountered: