Currently, Golang plugin creates the following line with the default settings:
go install -p 2 -ldflags -linkmode=external ./...
As you can see from the code, the build packages path cannot be parameterized as it is hardcoded to ellipsis path (
./...). How do we specify target packages so that we can build only the binaries we want to (without resorting to
override-build of course)? An example use case would be:
go install -p 2 -ldflags -linkmode=external .
which would only build the top level package and install the resulting binary.