Skip to content

Commit

Permalink
fix: lint and goreleaser issues (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
titusjaka authored Oct 5, 2023
1 parent 3a02803 commit 740405f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 11 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions inputs/select-promter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package inputs

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion transformer/include-transformer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 740405f

Please sign in to comment.