diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd09dfa..cc3011f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOPROXY: https://proxy.golang.org,direct diff --git a/.goreleaser.yml b/.goreleaser.yml index f57f8a4..952952e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,12 +8,17 @@ builds: - env: - CGO_ENABLED=0 archives: -- replacements: - darwin: osx - linux: linux - windows: win - 386: i386 - amd64: x86_64 +- id: release + name_template: >- + {{- .ProjectName }}_ + {{ .Version }}_ + {{- if eq .Os "windows" }}win + {{- else if eq .Os "darwin" }}osx + {{- else }}{{ .Os }}{{ end }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} checksum: name_template: 'checksums.txt' snapshot: diff --git a/inputs/select-promter.go b/inputs/select-promter.go index f11ed6e..2fb9cbc 100644 --- a/inputs/select-promter.go +++ b/inputs/select-promter.go @@ -2,6 +2,7 @@ package inputs import ( "fmt" + "github.com/AlecAivazis/survey/v2" ) diff --git a/transformer/include-transformer_test.go b/transformer/include-transformer_test.go index 58e7ebb..a86430e 100644 --- a/transformer/include-transformer_test.go +++ b/transformer/include-transformer_test.go @@ -28,7 +28,7 @@ func TestTransform(t *testing.T) { repeatMe := "I will not waste chalk. " excessivelyLongLine := strings.Repeat(repeatMe, 1+bufio.MaxScanTokenSize/len(repeatMe)) - // nolint:maligned + //nolint:maligned tests := []struct { name string truthy bool