Skip to content

Commit

Permalink
debugging: try out no unique build dir
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 a45599e commit bdd7a46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cmd/goreleaser/internal/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ func Build(dist string, buildOrRest bool, pie bool) config.Build {
Path: "artifacts/otelcol-contrib_{{ .Target }}" +
"/otelcol-contrib{{- if eq .Os \"windows\" }}.exe{{ end }}",
},
Goos: goos,
Goarch: archs,
Goarm: ArmVersions(dist),
Dir: "_build",
Binary: dist,
Ignore: generateIgnored(goos, archs, pie),
Goos: goos,
Goarch: archs,
Goarm: ArmVersions(dist),
Dir: "_build",
Binary: dist,
Ignore: generateIgnored(goos, archs, pie),
NoUniqueDistDir: "true",
}
}

Expand Down
2 changes: 2 additions & 0 deletions distributions/otelcol-contrib/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ builds:
dir: _build
binary: otelcol-contrib
builder: prebuilt
no_unique_dist_dir: "true"
prebuilt:
path: artifacts/otelcol-contrib_{{ .Target }}/otelcol-contrib{{- if eq .Os "windows" }}.exe{{ end }}
- id: otelcol-contrib
Expand Down Expand Up @@ -98,6 +99,7 @@ builds:
dir: _build
binary: otelcol-contrib
builder: prebuilt
no_unique_dist_dir: "true"
prebuilt:
path: artifacts/otelcol-contrib_{{ .Target }}/otelcol-contrib{{- if eq .Os "windows" }}.exe{{ end }}
archives:
Expand Down

0 comments on commit bdd7a46

Please sign in to comment.