File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ BUILD_DIR ?= ./bin
1212# # Build Linux binary
1313build-linux :
1414 @echo " Building Linux AMD64 binary, GOFLAGS: $( GOFLAGS) "
15- @GOOS=linux GOARCH=amd64 $(GO ) build -ldflags " $( shell bash $( DEVGO_SCRIPTS) /version-ldflags.sh && echo $( BUILD_LDFLAGS) ) " -o $(BUILD_DIR ) / $(BUILD_PKG )
15+ @GOOS=linux GOARCH=amd64 $(GO ) build -trimpath - ldflags " $( shell bash $( DEVGO_SCRIPTS) /version-ldflags.sh && echo $( BUILD_LDFLAGS) ) " -o $(BUILD_DIR ) / $(BUILD_PKG )
1616
1717# # Build binary
1818build :
1919 @echo " Building binary, GOFLAGS: $( GOFLAGS) "
20- @$(GO ) build -ldflags " $( shell bash $( DEVGO_SCRIPTS) /version-ldflags.sh && echo $( BUILD_LDFLAGS) ) " -o $(BUILD_DIR ) / $(BUILD_PKG )
20+ @$(GO ) build -trimpath - ldflags " $( shell bash $( DEVGO_SCRIPTS) /version-ldflags.sh && echo $( BUILD_LDFLAGS) ) " -o $(BUILD_DIR ) / $(BUILD_PKG )
2121
2222# # Build and run binary
2323run :
You can’t perform that action at this time.
0 commit comments