Skip to content

Commit

Permalink
fix misplaced string
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
  • Loading branch information
mowies committed Dec 11, 2024
1 parent 9380631 commit da8f33a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/goreleaser/internal/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
}
Expand Down
2 changes: 1 addition & 1 deletion distributions/otelcol-contrib/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da8f33a

Please sign in to comment.