From f976e505337af350e5f064b2522f71aecfb89e80 Mon Sep 17 00:00:00 2001 From: Ben Hoyt Date: Tue, 16 Jul 2024 10:29:21 +1200 Subject: [PATCH] fix(snap): temporarily remove go generate step to "fix" snap version --- snap/snapcraft.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index fcf752dc..d4d74c00 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -34,8 +34,12 @@ parts: source: . build-snaps: - go/1.22/stable + # TODO(benhoyt): temporarily remove "go generate" step so that version + # is pulled directly from version.go in Git + # override-build: | + # go generate ./cmd + # CGO_ENABLED=0 go build -trimpath -ldflags=-w -ldflags=-s -o $CRAFT_PART_INSTALL/bin/pebble ./cmd/pebble override-build: | - go generate ./cmd CGO_ENABLED=0 go build -trimpath -ldflags=-w -ldflags=-s -o $CRAFT_PART_INSTALL/bin/pebble ./cmd/pebble pebble-release-data: