Skip to content

Commit 2d61206

Browse files
authored
Support for goreleaser v2 (#319)
1 parent 31d54c6 commit 2d61206

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: build
22

33
on:
4-
push:
4+
push:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
@@ -32,7 +32,7 @@ jobs:
3232
name: coverage-${{ matrix.os }}
3333
path: coverage.*
3434

35-
- run: goreleaser release --rm-dist --snapshot
35+
- run: goreleaser release --clean --snapshot
3636
if: ${{ runner.os == 'Linux' }}
3737

3838
- name: Upload dist

.goreleaser.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
before:
24
hooks:
35
- go mod download
@@ -34,4 +36,4 @@ release:
3436
prerelease: auto
3537
mode: append
3638
changelog:
37-
skip: true
39+
disable: true

tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ replace go.opentelemetry.io/otel/exporters/otlp/internal v0.20.1 => go.opentelem
88
require (
99
github.com/client9/misspell v0.3.4
1010
github.com/golangci/golangci-lint v1.58.2
11-
github.com/goreleaser/goreleaser v1.26.2
11+
github.com/goreleaser/goreleaser/v2 v2.0.0
1212
golang.org/x/vuln v1.1.1
1313
)
1414

tools/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ github.com/goreleaser/chglog v0.6.1 h1:NZKiX8l0FTQPRzBgKST7knvNZmZ04f7PEGkN2wInf
545545
github.com/goreleaser/chglog v0.6.1/go.mod h1:Bnnfo07jMZkaAb0uRNASMZyOsX6ROW6X1qbXqN3guUo=
546546
github.com/goreleaser/fileglob v1.3.0 h1:/X6J7U8lbDpQtBvGcwwPS6OpzkNVlVEsFUVRx9+k+7I=
547547
github.com/goreleaser/fileglob v1.3.0/go.mod h1:Jx6BoXv3mbYkEzwm9THo7xbr5egkAraxkGorbJb4RxU=
548-
github.com/goreleaser/goreleaser v1.26.2 h1:1iY1HaXtRiMTrwy6KE1sNjkRjsjMi+9l0k6WUX8GpWw=
549-
github.com/goreleaser/goreleaser v1.26.2/go.mod h1:mHi6zr6fuuOh5eHdWWgyo/N8BWED5WEVtb/4GETc9jQ=
548+
github.com/goreleaser/goreleaser/v2 v2.0.0 h1:TxH7v+rYsQ+e4CQDMmdBFnVzxuTbBJRwsLXeCSkOREU=
549+
github.com/goreleaser/goreleaser/v2 v2.0.0/go.mod h1:eit+2+u8uJLgBtuEMITPaQHwO55amhR089eFkbWi3s0=
550550
github.com/goreleaser/nfpm/v2 v2.37.1 h1:RUmeEt8OlEVeSzKRrO5Vl5qVWCtUwx4j9uivGuRo5fw=
551551
github.com/goreleaser/nfpm/v2 v2.37.1/go.mod h1:q8+sZXFqn106/eGw+9V+I8+izFxZ/sJjrhwmEUxXhUg=
552552
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=

tools/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ package tools
1010
import (
1111
_ "github.com/client9/misspell/cmd/misspell"
1212
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
13-
_ "github.com/goreleaser/goreleaser"
13+
_ "github.com/goreleaser/goreleaser/v2"
1414
_ "golang.org/x/vuln/cmd/govulncheck"
1515
)

0 commit comments

Comments
 (0)