Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Because the golang module version of github action is too low, 
the build will fail without go mod tidy.
  • Loading branch information
backguynn committed Mar 20, 2024
1 parent 1c40de7 commit 95f541a
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
Expand Up @@ -4,6 +4,7 @@ TAG?=latest

build:
@mkdir -p ./bin
go mod tidy
go build -o ./bin/${bin} -ldflags="-X 'main.BuildInfo=${shell date '+%Y_%m_%d'}-${shell git branch --show-current}-$(shell git show --pretty=format:%h --no-patch)' -X 'main.Version=${shell git describe --tags --abbrev=0}'" ./cmd/loxilb-agent

clean:
Expand Down

0 comments on commit 95f541a

Please sign in to comment.