Skip to content

Commit 3148572

Browse files
authoredJul 25, 2024··
update remaining goreleaser usages to v2 (#609)
1 parent 4d6e084 commit 3148572

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed
 

‎cmd/goreleaser/internal/configure.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"path"
2525
"strings"
2626

27-
"github.com/goreleaser/goreleaser-pro/pkg/config"
27+
"github.com/goreleaser/goreleaser-pro/v2/pkg/config"
2828
)
2929

3030
const ArmArch = "arm"
@@ -51,6 +51,7 @@ func Generate(dist string) config.Project {
5151
Signs: Sign(),
5252
DockerSigns: DockerSigns(),
5353
SBOMs: SBOM(),
54+
Version: 2,
5455
}
5556
}
5657

@@ -112,7 +113,7 @@ func WinPackages(dist string) []config.MSI {
112113
// https://goreleaser.com/customization/msi/
113114
func WinPackage(dist string) config.MSI {
114115
return config.MSI{
115-
ID: dist,
116+
ID: dist,
116117
Name: fmt.Sprintf("%s_{{ .Version }}_{{ .Os }}_{{ .MsiArch }}", dist),
117118
WXS: "windows-installer.wxs",
118119
Files: []string{

‎distributions/otelcol-contrib/.goreleaser.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
partial:
22
by: target
3+
version: 2
34
project_name: opentelemetry-collector-releases
45
env:
56
- COSIGN_YES=true

‎distributions/otelcol/.goreleaser.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
partial:
22
by: target
3+
version: 2
34
project_name: opentelemetry-collector-releases
45
env:
56
- COSIGN_YES=true

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-releases
33
go 1.22
44

55
require (
6-
github.com/goreleaser/goreleaser-pro v1.25.1-pro
6+
github.com/goreleaser/goreleaser-pro/v2 v2.1.0-pro
77
gopkg.in/yaml.v3 v3.0.1
88
)
99

‎go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
2-
github.com/goreleaser/goreleaser-pro v1.25.1-pro h1:NOoSx96oAK0zNA1+hiL0p6pY1DWL101kwPmpmkiExXk=
3-
github.com/goreleaser/goreleaser-pro v1.25.1-pro/go.mod h1:7q9HURJC4ZYBT9VyX3XlqjK0kwe5QbG/VIUAJSP3CKc=
2+
github.com/goreleaser/goreleaser-pro/v2 v2.1.0-pro h1:9SYFXdnxoLB/8RRazytwFjKg/+394hjVplm7YLcXpQ8=
3+
github.com/goreleaser/goreleaser-pro/v2 v2.1.0-pro/go.mod h1:GA7Uzk7qKA3efeDmgfWwcMTrDJe+V7D6H5RMqXlFvuc=
44
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
55
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
66
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=

0 commit comments

Comments
 (0)
Please sign in to comment.