diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index fcf752dc3..d4d74c00d 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: