File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 88- main : ./cmd/pgwatch
99 env :
1010 - CGO_ENABLED=0
11+ - GOEXPERIMENT=greenteagc
1112 goos :
1213 - linux
1314 - darwin
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ COPY --from=webui-builder /webui/build ./internal/webui/build
5050
5151# Generate protobuf and build the application
5252RUN go generate ./api/pb/ && \
53- CGO_ENABLED=0 go build -ldflags "\
53+ CGO_ENABLED=0 GOEXPERIMENT=greenteagc go build -ldflags "\
5454 -X 'main.commit=${GIT_HASH}' \
5555 -X 'main.date=${GIT_TIME}' \
5656 -X 'main.version=${VERSION}'" ./cmd/pgwatch
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ COPY --from=webui-builder /webui/build ./internal/webui/build
5050
5151# Generate protobuf and build the application
5252RUN go generate ./api/pb/ && \
53- CGO_ENABLED=0 go build -ldflags "\
53+ CGO_ENABLED=0 GOEXPERIMENT=greenteagc go build -ldflags "\
5454 -X 'main.commit=${GIT_HASH}' \
5555 -X 'main.date=${GIT_TIME}' \
5656 -X 'main.version=${VERSION}'" ./cmd/pgwatch
Original file line number Diff line number Diff line change 66GIT_HASH=$( git show -s --format=%H HEAD)
77GIT_TIME=$( git show -s --format=%cI HEAD)
88VERSION=$( git rev-parse --abbrev-ref HEAD)
9- go build -ldflags " -X 'main.commit=$GIT_HASH ' -X 'main.date=$GIT_TIME ' -X 'main.version=$VERSION '"
9+ GOEXPERIMENT=greenteagc go build -ldflags " -X 'main.commit=$GIT_HASH ' -X 'main.date=$GIT_TIME ' -X 'main.version=$VERSION '"
You can’t perform that action at this time.
0 commit comments