vc60er / deptree

show golang dependence like tree
76 stars 9 forks source link

broken install #6

Closed hallm4 closed 1 year ago

hallm4 commented 1 year ago
go install github.com/vc60er/deptree@latest
go: downloading github.com/vc60er/deptree v0.0.0-20230404110658-6c29a59199f9
go: github.com/vc60er/deptree@latest: module github.com/vc60er/deptree@latest found (v0.0.0-20230404110658-6c29a59199f9), but does not contain package github.com/vc60er/deptree
hallm4 commented 1 year ago

Looks like I can go a 'go install github.com/vc60er/deptree/cmd@latest' and get a 'cmd' binary that is 'deptree'. So maybe some of this is a README update or related to the changes committed on april 4 2023.

gen2thomas commented 1 year ago

Hi @hallm4 , thanks for pointing this out. Most likely this is caused by the mentioned commit of #5 . I will have a deeper look in the next few days, to check for the best way to fix it.

hallm4 commented 1 year ago

I am currently working around this by :

go install github.com/vc60er/deptree@v0.0.0-20230327150202-7d95a587b675

my build logs had the previous version that was selected automatically (the previous @ latest)

gen2thomas commented 1 year ago

After some investigation, there are some possibilities:

Both variants has its pros and cons. IMO the first variant can handle multiple binaries, the second covers the problem exactly for one tool and simplifies the install call, so I will go with the second.