goclipse
goclipse copied to clipboard
Problems Building with Vendor Directory
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"
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?
Not for tests I don't. -> no incremental building and I definitely NEVER want to run tests in side the vendor directory.
So, is this a problem just for the [run-tests]
Build Target?