Skip to content

Commit ce47a62

Browse files
authored
Add a build-vm command to Makefile (#3493)
## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> New command allows to build a binary in a VM environment that has the source files but can't properly read git stamps. I test the CLI on Windows using Parallels Desktop where my files are mirrored from the hosted Mac OS to a separate virtual disk, this set up somehow confuses go/git to properly stamp the binary with the VCS info. ## Tests <!-- How have you tested the changes? --> Manual runs of `make build` and `make build-vm` <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
1 parent 49c8e5f commit ce47a62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ acc-showcover:
8181
build: tidy
8282
go build
8383

84+
# builds the binary in a VM environment (such as Parallels Desktop) where your files are mirrored from the host os
85+
build-vm: tidy
86+
go build -buildvcs=false
87+
8488
snapshot:
8589
go build -o .databricks/databricks
8690

0 commit comments

Comments
 (0)