File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ $(shell mkdir -p $(DIRS))
4949VERSION ?= "v3.0.0"
5050COMMIT = $(shell git rev-parse --short HEAD)
5151DATE = $(shell date +% F_% H-% M-% S)
52- LDFLAGS = "-w -X main.version=$(VERSION ) -X main.commit=$(COMMIT ) -X main.date=$(DATE ) "
52+ LDFLAGS = "-s - w -X main.version=$(VERSION ) -X main.commit=$(COMMIT ) -X main.date=$(DATE ) "
5353DEBUG_LDFLAGS = "-X main.version=$(VERSION ) -X main.commit=$(COMMIT ) -X main.date=$(DATE ) "
5454
5555OSS_PACKAGES_REPO := "packages.nginx.org"
@@ -114,8 +114,9 @@ no-local-changes:
114114 git diff --quiet || { echo " Dependency changes detected. Please commit these before pushing." >&2 ; exit 1; }
115115
116116build : # # Build agent executable
117+ @echo " 🏗️ Building"
117118 mkdir -p $(BUILD_DIR )
118- @ GOARCH=$(OSARCH ) $(GOBUILD ) -o $(BUILD_DIR ) /$(BINARY_NAME ) -pgo=default.pgo -ldflags=$(LDFLAGS ) $(PROJECT_DIR ) /$(PROJECT_FILE )
119+ GOARCH=$(OSARCH ) $(GOBUILD ) -o $(BUILD_DIR ) /$(BINARY_NAME ) -pgo=default.pgo -ldflags=$(LDFLAGS ) $(PROJECT_DIR ) /$(PROJECT_FILE )
119120 @echo " 📦 Build Done"
120121
121122lint : # # Run linter
You can’t perform that action at this time.
0 commit comments