mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 18:20:42 -07:00
Merge pull request #2383 from yzhao1012/include_symbols_in_build
Remove '-s' flag from ldflags from the build
This commit is contained in:
@@ -5,7 +5,7 @@ builds:
|
||||
id: nats-server
|
||||
binary: nats-server
|
||||
ldflags:
|
||||
- -s -w -X github.com/nats-io/nats-server/server.gitCommit={{.ShortCommit}}
|
||||
- -w -X github.com/nats-io/nats-server/server.gitCommit={{.ShortCommit}}
|
||||
env:
|
||||
- GO111MODULE=off
|
||||
- CGO_ENABLED=0
|
||||
|
||||
@@ -14,7 +14,7 @@ builds:
|
||||
- main: ./main.go
|
||||
binary: nats-server
|
||||
ldflags:
|
||||
- -s -w -X github.com/nats-io/nats-server/server.gitCommit={{.ShortCommit}}
|
||||
- -w -X github.com/nats-io/nats-server/server.gitCommit={{.ShortCommit}}
|
||||
env:
|
||||
- GO111MODULE=off
|
||||
- CGO_ENABLED=0
|
||||
|
||||
@@ -7,7 +7,7 @@ RUN mkdir -p src/github.com/nats-io && \
|
||||
cd src/github.com/nats-io/ && \
|
||||
git clone https://github.com/nats-io/natscli.git && \
|
||||
cd natscli/nats && \
|
||||
go build -ldflags "-s -w -X main.version=${VERSION}" -o /nats
|
||||
go build -ldflags "-w -X main.version=${VERSION}" -o /nats
|
||||
|
||||
RUN go get github.com/nats-io/nsc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user