Skip to content

Commit

Permalink
ci: snap: ldflags weren't picked up
Browse files Browse the repository at this point in the history
  • Loading branch information
yktoo committed Oct 2, 2023
1 parent 2c05c6b commit 3f2186a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ parts:
override-build: |
set -eu
go generate
CGO_LDFLAGS="-s -w -X main.version=$(git describe --always --tags) -X main.commit=$(git rev-parse HEAD) -X main.date=$(date --iso-8601=seconds)"
go build -tags "glib_2_64" -o "${SNAPCRAFT_PART_INSTALL}"
go build \
-tags "glib_2_64" \
-ldflags "-s -w -X main.version=$(git describe --always --tags) -X main.commit=$(git rev-parse HEAD) -X main.date=$(date --iso-8601=seconds)"
-o "${SNAPCRAFT_PART_INSTALL}"
resources:
plugin: dump
Expand Down

0 comments on commit 3f2186a

Please sign in to comment.