Skip to content

Commit 85ded16

Browse files
committed
add custom go tags
1 parent 4818355 commit 85ded16

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/goreleaser/internal/configure.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ var (
162162
"-X go.opentelemetry.io/ebpf-profiler/vc.buildTimestamp={{ .Date }}",
163163
"-extldflags=-static",
164164
}, " ")
165+
d.goTags = "osusergo,netgo"
165166
}).WithDefaultArchives().WithDefaultChecksum().WithDefaultSigns().WithDefaultDockerSigns().WithDefaultSBOMs().Build()
166167
)
167168

distributions/otelcol-ebpf-profiler/.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
- COSIGN_YES=true
55
- LD_FLAGS=-X go.opentelemetry.io/ebpf-profiler/vc.version={{ .Version }} -X go.opentelemetry.io/ebpf-profiler/vc.revision={{ .Commit }} -X go.opentelemetry.io/ebpf-profiler/vc.buildTimestamp={{ .Date }} -extldflags=-static
66
- BUILD_FLAGS=-trimpath
7+
- GO_TAGS=osusergo,netgo
78
release:
89
replace_existing_artifacts: true
910
builds:

0 commit comments

Comments
 (0)