Skip to content

Commit

Permalink
build add trimpath
Browse files Browse the repository at this point in the history
  • Loading branch information
kqzh authored and pengweisong committed May 16, 2022
1 parent a3ebc43 commit e9c522b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode
.idea

bin

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fmt:
find . -type f -iname \*.go -exec go fmt {} \;

build: clean fmt
go build -ldflags "-X main.GitInfoSHA=`git rev-parse --short HEAD`" -o ./bin/agent cmd/agent.go
go build -trimpath -ldflags "-X main.GitInfoSHA=`git rev-parse --short HEAD`" -o ./bin/agent cmd/agent.go
go build -o ./bin/client examples/storage.go
chmod +x ./bin/agent
chmod +x ./bin/client
Expand Down

0 comments on commit e9c522b

Please sign in to comment.