diff --git a/cmd/goreleaser/internal/configure.go b/cmd/goreleaser/internal/configure.go index aeb6059e..2f57dd44 100644 --- a/cmd/goreleaser/internal/configure.go +++ b/cmd/goreleaser/internal/configure.go @@ -123,7 +123,7 @@ func Build(dist string, buildOrRest bool, pie bool) config.Build { if pie { ldflags = append(ldflags, "-buildmode=pie") id = id + "-pie" - prebuiltPath = fmt.Sprintf("artifacts/otelcol-contrib_{{ .Target }}%s/otelcol-contrib{{- if eq .Os \"windows\" }}.exe{{ end }}", "-pie") + prebuiltPath = fmt.Sprintf("artifacts/otelcol-contrib%s_{{ .Target }}/otelcol-contrib{{- if eq .Os \"windows\" }}.exe{{ end }}", "-pie") } else { prebuiltPath = "artifacts/otelcol-contrib_{{ .Target }}/otelcol-contrib{{- if eq .Os \"windows\" }}.exe{{ end }}" } diff --git a/distributions/otelcol-contrib/.goreleaser.yaml b/distributions/otelcol-contrib/.goreleaser.yaml index 4443d7e8..e9b9d611 100644 --- a/distributions/otelcol-contrib/.goreleaser.yaml +++ b/distributions/otelcol-contrib/.goreleaser.yaml @@ -53,7 +53,7 @@ builds: binary: otelcol-contrib builder: prebuilt prebuilt: - path: artifacts/otelcol-contrib_{{ .Target }}-pie/otelcol-contrib{{- if eq .Os "windows" }}.exe{{ end }} + path: artifacts/otelcol-contrib-pie_{{ .Target }}/otelcol-contrib{{- if eq .Os "windows" }}.exe{{ end }} - id: otelcol-contrib goos: - darwin