Skip to content

Commit 084cb60

Browse files
committedFeb 25, 2025·
Revert "Use GOAMD64=v2 for amd64 builds (#3897)"
This reverts commit e449446.
1 parent 7744262 commit 084cb60

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed
 

‎.goreleaser.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ builds:
1616
goarch:
1717
- amd64
1818
- arm64
19-
goamd64:
20-
- v2
2119
main: ./cmd/pyroscope
2220
mod_timestamp: "{{ .CommitTimestamp }}"
2321
flags:
@@ -51,8 +49,6 @@ builds:
5149
goarch:
5250
- amd64
5351
- arm64
54-
goamd64:
55-
- v2
5652
ignore:
5753
- goos: windows
5854
goarch: arm

‎Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ go/deps:
132132
$(GO) mod tidy
133133

134134
define go_build_pyroscope
135-
GOOS=$(GOOS) GOARCH=$(GOARCH) GOAMD64=v2 CGO_ENABLED=0 $(GO) build -tags "netgo $(EMBEDASSETS)" -ldflags "-extldflags \"-static\" $(1)" -gcflags=$(2) ./cmd/pyroscope
135+
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 $(GO) build -tags "netgo $(EMBEDASSETS)" -ldflags "-extldflags \"-static\" $(1)" -gcflags=$(2) ./cmd/pyroscope
136136
endef
137137

138138
define go_build_profilecli
139-
GOOS=$(GOOS) GOARCH=$(GOARCH) GOAMD64=v2 CGO_ENABLED=0 $(GO) build -ldflags "-extldflags \"-static\" $(1)" -gcflags=$(2) ./cmd/profilecli
139+
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 $(GO) build -ldflags "-extldflags \"-static\" $(1)" -gcflags=$(2) ./cmd/profilecli
140140
endef
141141

142142
.PHONY: go/bin-debug
@@ -275,7 +275,7 @@ docker-image/pyroscope/dlv:
275275
# dlv is not intended for local use and is to be installed in the
276276
# platform-specific docker image together with the main Pyroscope binary.
277277
@mkdir -p $(@D)
278-
GOPATH=$(CURDIR)/.tmp GOAMD64=v2 CGO_ENABLED=0 $(GO) install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv@v1.23.0
278+
GOPATH=$(CURDIR)/.tmp CGO_ENABLED=0 $(GO) install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv@v1.23.0
279279
mv $(CURDIR)/.tmp/bin/$(GOOS)_$(GOARCH)/dlv $(CURDIR)/.tmp/bin/dlv
280280

281281
define UPDATER_CONFIG_JSON

0 commit comments

Comments
 (0)
Please sign in to comment.