goclipse icon indicating copy to clipboard operation
goclipse copied to clipboard

Problems Building with Vendor Directory

Open tsmaeder opened this issue 8 years ago • 3 comments

When using vendor directory, the default build target builds all packages, including everything inside the "vendor" directory. Of course, this is not what I want. The proposed solutions on the interwebs suggest passing the list of packages to go build, but that doesn't really work (I've tried to do this on Windows using some "for /f" magic, but the build errors are not picked up anymore. One simple solution that has occured to me would be to define a "project_packages" eclipse variables that could be passed to "go build" and "go test"

tsmaeder avatar Jul 21 '16 08:07 tsmaeder

I'm a bit confused here, why is it that building the vendor is not what you want? If a project has defined a vendor directory, it means that project wants to use the vendor packages as dependencies - which means they need to be built, no?

bruno-medeiros avatar Jul 25 '16 15:07 bruno-medeiros

Not for tests I don't. -> no incremental building and I definitely NEVER want to run tests in side the vendor directory.

tsmaeder avatar Jul 25 '16 16:07 tsmaeder

So, is this a problem just for the [run-tests] Build Target?

bruno-medeiros avatar Dec 30 '16 15:12 bruno-medeiros