Skip to content

Commit

Permalink
Build: Remove assets/compiled.go before build
Browse files Browse the repository at this point in the history
Makes sure the compiled result is not included in itself again every
time. After a while this leads to memory consumption of multiple GB
during build and a bloated binary. 😬
  • Loading branch information
kdambekalns committed Oct 21, 2020
1 parent f5884b4 commit e0dbde3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build:
rm -f assets/compiled.go
go generate -v
go install -v
go build -v -ldflags "-X github.com/flownative/localbeach/pkg/version.Version=dev" -o beach
Expand Down

0 comments on commit e0dbde3

Please sign in to comment.