Skip to content

Commit

Permalink
Add /bin/sh dependency to linux packages (#617)
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies authored Jul 31, 2024
1 parent efc0813 commit 5342205
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/goreleaser/internal/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func Package(dist string) config.NFPM {
Type: "config|noreplace",
},
},
Dependencies: []string{"/bin/sh"},
},
}
}
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 @@ -55,6 +55,8 @@ archives:
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
nfpms:
- package_name: otelcol-contrib
dependencies:
- /bin/sh
contents:
- src: otelcol-contrib.service
dst: /lib/systemd/system/otelcol-contrib.service
Expand Down
2 changes: 2 additions & 0 deletions distributions/otelcol/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ archives:
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
nfpms:
- package_name: otelcol
dependencies:
- /bin/sh
contents:
- src: otelcol.service
dst: /lib/systemd/system/otelcol.service
Expand Down

0 comments on commit 5342205

Please sign in to comment.