Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Making go-vet and go-test ignore vendor directory #99

Closed
anoopengineer opened this issue Mar 11, 2016 · 4 comments
Closed

Making go-vet and go-test ignore vendor directory #99

anoopengineer opened this issue Mar 11, 2016 · 4 comments

Comments

@anoopengineer
Copy link
Collaborator

Is it currently possible to ignore the code in the $PROJECT-DIR/vendor directory? I do not want the code in vendor directory to be vetted or the tests in that directory run.

I see that MAIN_DIRS_EXCLUDE_DEFAULT constant already has the vendor directory added, but I still see the vet and test tasks run over this directory.

@laher
Copy link
Owner

laher commented Mar 26, 2016

Hi there. I have been working on another project to handle this in a generic way.

I'll do the work to merge it in soon, then let you know.

@afeld
Copy link

afeld commented Apr 26, 2016

May be useful: the Glide package manager has a novendor command that gives a list of packages, excluding the vendor directory.

https://github.com/Masterminds/glide#glide-novendor-aliased-to-nv

@laher
Copy link
Owner

laher commented Jul 22, 2016

Hey there. Sorry, I did the work for this but haven't found time to merge it into this project. It wouldn't take long. Here is the separate project which can list packages excluding vendor dir. https://github.com/laher/gols

Given that this project is in 'maintenance mode', I'd like to just leave this here for someone to add in, should they still want this feature. Just send a PR and I'll merge it in.

@laher
Copy link
Owner

laher commented Jul 22, 2016

Closing with above recommendation. Sorry!

@laher laher closed this as completed Jul 22, 2016
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

3 participants