dkulchenko / bunch

npm-like tool for managing Go dependencies
MIT License
79 stars 13 forks source link

not fetching vendored dependencies #23

Open tve opened 9 years ago

tve commented 9 years ago

(sorry for the barrage of questions, I'm not sure what other channel to use...)

Is there a way to vendor dependencies that cannot be fetched on-demand (for example, because they are in private repos or in unreachable repos)? I tried to manually clone a repo into the .vendor/src tree but when I run bunch install it tries to refetch it. Basically I need a command that travis-ci can run that fetches all the normal fetch-on-demand dependencies but that doesn't die on vendored dependencies.(I use the term 'vendored' to mean dependencies that are copied into the repo as opposed to just referenced.)

dkulchenko commented 9 years ago

This isn't currently supported, but is a good idea - I'll look into implementing it.

3onyc commented 9 years ago

Wouldn't this just work if you don't list them in Bunchfile?

Perhaps to play nice with prune/rebuild/etc. add a !vendor flag in Bunchfile that indicates the package is managed manually.