build:
GO111MODULE=on go build -v -o bin/${BINARY_NAME} src/*.go
What if I have a foo subpackage (src/foo/foo.go)? You should pretty much always operate on packages in Go, rarely on files.
This should probably be cd src && go install or something along those lines (possible setting GOBIN if you want something different than ~/go/bin as the destination).
From the Makefile:
What if I have a
foo
subpackage (src/foo/foo.go
)? You should pretty much always operate on packages in Go, rarely on files.This should probably be
cd src && go install
or something along those lines (possible settingGOBIN
if you want something different than~/go/bin
as the destination).Same applies to
go vet
etc.Fair point. Any recommendations in that case on how to cover all packages without writing crazy bash for-loops?