whyrusleeping / gx-go

gx subtool for golang
MIT License
80 stars 28 forks source link

links and vendor #31

Open djdv opened 6 years ago

djdv commented 6 years ago

I think gx-go link should warn about the existence of a dependency that is both linked and also exists inside of ./vendor/

I got confused when I tried linking a dependency after forgetting I vendored everything previously with gx install --local. gx-go link *somehash* will succeed in writing the package to global and linking but this has no effect since vendor exists with the dep inside of it. I'd like to see something like

>gx-go link QmWi28zbQG6B1xfaaWx5cYoLn3kBFU6pQ6GWQNRV5P6dNe writing package to: C:\Users\Dominic\Projects\Go\src\gx\ipfs\QmWi28zbQG6B1xfaaWx5cYoLn3kBFU6pQ6GWQNRV5P6dNe linked QmWi28zbQG6B1xfaaWx5cYoLn3kBFU6pQ6GWQNRV5P6dNe C:\Users\Dominic\Projects\Go\src\go4.org\lock Warning: link succeeded but "go4.org/lock" is vendored

Both for links being created and links being listed with gx-go link

>gx-go link QmWi28zbQG6B1xfaaWx5cYoLn3kBFU6pQ6GWQNRV5P6dNe C:\Users\Dominic\Projects\Go\src\go4.org\lock Warning: "go4.org/lock" is linked but is also vendored