From 6ef3452e5aac4667754c96d55488af9e659ad3cc Mon Sep 17 00:00:00 2001 From: Mike Mondragon Date: Wed, 3 Jul 2024 11:39:11 -0700 Subject: [PATCH] Needed goreleaser adjustments. https://goreleaser.com/blog/goreleaser-v2/ https://goreleaser.com/customization/changelog/ --- .github/workflows/release.yml | 2 +- .goreleaser.yaml | 8 ++------ go.mod | 6 ++---- go.sum | 2 -- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 900a122..348eb96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: name: Run GoReleaser uses: goreleaser/goreleaser-action@v6.0.0 with: - version: latest + version: '~> v2' args: release --clean env: GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8a95c10..b5a1027 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,5 +1,6 @@ # This is an example .goreleaser.yml file with some sensible defaults. # Make sure to check the documentation at https://goreleaser.com +version: 2 before: hooks: # You may remove this if you don't use go modules. @@ -33,9 +34,4 @@ snapshot: release: draft: true changelog: - skip: true - #sort: asc - #filters: - # exclude: - # - '^docs:' - # - '^test:' + disable: true diff --git a/go.mod b/go.mod index e07bbfa..e20b624 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.21 require ( github.com/AlecAivazis/survey/v2 v2.3.6 + github.com/BurntSushi/toml v1.4.0 github.com/aws/aws-sdk-go v1.44.94 github.com/cenkalti/backoff/v4 v4.1.3 github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 @@ -24,10 +25,7 @@ require ( gopkg.in/yaml.v2 v2.4.0 ) -require ( - github.com/BurntSushi/toml v1.4.0 // indirect - golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect -) +require golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect require ( github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/go.sum b/go.sum index d1b846c..e1940e8 100644 --- a/go.sum +++ b/go.sum @@ -439,8 +439,6 @@ golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=