forked from kubernetes-csi/csi-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build.make: support binaries outside of cmd, with optional go.mod
Setting CMDS_DIR in the top-level Makefile before including build.make will ensure that binaries are picked up from that other directory. This is useful for lib-volume-populator where an example populator is provided under "example". The commands are no longer expected to share the go.mod file with the project. Entering the command directory and using `go build .` will pick up a local go.mod if it exists and otherwise fall back to the project's go.mod.
- Loading branch information
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters