Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Extend ignore property in manifest #1187

Closed
phifty opened this issue Sep 20, 2017 · 2 comments
Closed

Extend ignore property in manifest #1187

phifty opened this issue Sep 20, 2017 · 2 comments

Comments

@phifty
Copy link

phifty commented Sep 20, 2017

Hi!

I looking for a way to ignore a whole sub-tree of packages. I would like to write something like this in the manifest.

ignored = [ "code.example.com/..." ]

The result should be that all packages prefixed with code.example.com are not vendored and always searched on GOPATH.

The context is, that I have a few services that shared some libraries and they all live in the same repository at code.example.com. When I checkout a service like code.example.com/service/foobar, all shared packages under code.example.com/... are checked out along with the service and exists on the GOPATH in the right version already. Vendoring is not needed at this point and leads to confusion, cause the source code exists in two places.

Thanks in advance and best regards

@sdboyer
Copy link
Member

sdboyer commented Sep 20, 2017

hi, welcome! yep, we're working on this now: #1156 😄 gonna close this one as a dupe of #691.

note that it's gonna be * instead of ..., as ... has subtly different meaning due to the directories it ignores (_-led, .-led, testdata). those cases are generally already covered by dep in a sane way, but because this is explicitly an exclude list, the wildcard operator needs to encompass those for those times when something falls through the cracks of dep's more general model.

@sdboyer sdboyer closed this as completed Sep 20, 2017
@phifty
Copy link
Author

phifty commented Sep 25, 2017

Thanks! I didn't saw the other issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants