Save build artifacts aftifacts for Go builds
In the places we run `go build`, we should use `go build -i` to save the `.a` files generated during the build. This ensures the artifacts are availble for other Go tools (linters, IDEs), and should also improve build speeds.
This commit is contained in:
parent
96c25a9614
commit
771a30c688
7
Makefile
7
Makefile
|
@ -21,13 +21,6 @@ banner_all:
|
|||
@echo "\033[1;37mLumi (Full)\033[0m"
|
||||
@echo "\033[1;37m============\033[0m"
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
@echo "\033[0;32mBUILD:\033[0m"
|
||||
@go version
|
||||
@go build ${PROJECT}/cmd/lumi
|
||||
@go build ${PROJECT}/cmd/lumidl
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
@echo "\033[0;32mINSTALL:\033[0m"
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
set -e # bail on errors
|
||||
|
||||
echo Compiling:
|
||||
go build -o lumi-analyzer-contoso_infosec
|
||||
go build -i -o lumi-analyzer-contoso_infosec
|
||||
echo Done.
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ build:
|
|||
@cd pack/ && lumi pack verify # ensure the pack verifies
|
||||
@cp -R pack/.lumi/bin/ bin/ # copy the pack to our bin dir
|
||||
@go version
|
||||
@cd provider/ && go build -o ../bin/lumi-resource-aws # compile the resource provider
|
||||
@cd provider/ && go build -i -o ../bin/lumi-resource-aws # compile the resource provider
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
|
|
Loading…
Reference in a new issue