golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 267 forks source link

godoc.org: shows wrong import path for forked Go projects #672

Closed mcandre closed 4 years ago

mcandre commented 4 years ago

https://godoc.org/github.com/JFrogDev/go-rpm/yum shows import "github.com/JFrogDev/go-rpm/yum", whereas https://github.com/jfrog/go-rpm shows import ( "fmt" "github.com/cavaliercoder/go-rpm" )

toothrot commented 4 years ago

/cc @dmitshur

I'm not sure if this will be fixed in the foreseeable future.

heschi commented 4 years ago

I don't see a bug here. The first quote is the correct import path for the fork. The second quote is from the README, which was forked unmodified from upstream. If anything is wrong, it would seem to be the README.

dmitshur commented 4 years ago

For general godoc.org bugs, we use the issue tracker at https://github.com/golang/gddo/issues. I'll move this issue there.

dmitshur commented 4 years ago

I agree with @heschik's analysis. There doesn't seem to be a bug in godoc.org, it is displaying an accurate import path of the "github.com/JFrogDev/go-rpm/yum" Go package.

If you want to see documentation for the "github.com/cavaliercoder/go-rpm" package, you should visit https://godoc.org/github.com/cavaliercoder/go-rpm.

I'll close this, but please comment if I have misunderstood.