Skip to content

Commit

Permalink
chore: dependency updates
Browse files Browse the repository at this point in the history
Includes updates to build tooling.
  • Loading branch information
wfscheper committed Oct 18, 2024
1 parent 2b5115a commit 4b3ff85
Show file tree
Hide file tree
Showing 11 changed files with 1,133 additions and 1,323 deletions.
8 changes: 7 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
linters:
enable:
- copyloopvar
- errcheck
- gocritic
- goimports
Expand All @@ -9,9 +10,14 @@ linters:
- ineffassign
- revive
- staticcheck
- typecheck
- unused

issues:
max-issues-per-linter: 0
max-same-issues: 0

linters-settings:
revive:
rules:
- name: unused-parameter
disabled: true
1 change: 0 additions & 1 deletion cmd/gotagger/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ func TestGoTagger(t *testing.T) {
}

for _, tt := range tests {
tt := tt
t.Run(tt.title, func(t *testing.T) {
t.Parallel()

Expand Down
1 change: 0 additions & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ func TestConfig_ParseJSON(t *testing.T) {
}

for _, tt := range tests {
tt := tt
t.Run(tt.title, func(t *testing.T) {
t.Parallel()
cfg := NewDefaultConfig()
Expand Down
35 changes: 18 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
module github.com/sassoftware/gotagger

go 1.18
go 1.22.0

toolchain go1.23.2

require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/go-git/go-git/v5 v5.9.0
github.com/go-logr/logr v1.2.4
github.com/Masterminds/semver/v3 v3.3.0
github.com/go-git/go-git/v5 v5.12.0
github.com/go-logr/logr v1.4.2
github.com/go-logr/zerologr v1.2.3
github.com/rs/zerolog v1.30.0
github.com/stretchr/testify v1.8.4
golang.org/x/mod v0.13.0
github.com/rs/zerolog v1.33.0
github.com/stretchr/testify v1.9.0
golang.org/x/mod v0.21.0
pgregory.net/rapid v1.1.0
)

require (
dario.cat/mergo v1.0.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
Expand All @@ -27,16 +28,16 @@ require (
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/skeema/knownhosts v1.2.0 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/net v0.15.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/tools v0.13.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
92 changes: 52 additions & 40 deletions go.sum

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions gotagger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ func TestGotagger_latestModule(t *testing.T) {
}

for _, tt := range tests {
tt := tt

t.Run(tt.title, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -632,8 +630,6 @@ func TestGotagger_versioning(t *testing.T) {
}

for _, tt := range tests {
tt := tt

t.Run(tt.title, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -982,8 +978,6 @@ func TestGotagger_TagRepo_ignore_modules(t *testing.T) {
}

for _, tt := range tests {
tt := tt

t.Run(tt.title, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -1313,8 +1307,6 @@ func TestGotagger_findAllModules(t *testing.T) {
}

for _, tt := range tests {
tt := tt

t.Run(tt.title, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -1402,8 +1394,6 @@ func TestGotagger_incrementVersion(t *testing.T) {
}

for _, tt := range tests {
tt := tt

t.Run(tt.title, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -1525,8 +1515,6 @@ func Test_filterCommitsByModule(t *testing.T) {
}

for _, tt := range tests {
tt := tt

t.Run(tt.title, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -1600,7 +1588,6 @@ func TestGotagger_validateModules(t *testing.T) {
}

for _, tt := range tests {
tt := tt
t.Run(tt.title, func(t *testing.T) {
t.Parallel()

Expand Down
2 changes: 0 additions & 2 deletions internal/commit/commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ func TestCommit_Message(t *testing.T) {
}

for _, tt := range tests {
tt := tt

t.Run(tt.want, func(t *testing.T) {
t.Parallel()

Expand Down
1 change: 0 additions & 1 deletion internal/git/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ func Test_hasPrefix(t *testing.T) {

t.Parallel()
for _, tt := range tests {
tt := tt
t.Run(tt.title, func(t *testing.T) {
if got, want := hasPrefix(tt.version, tt.prefixes), tt.want; got != want {
t.Errorf("hasPrefix returned %v, want %v", got, want)
Expand Down
2 changes: 0 additions & 2 deletions mapper/mapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ func TestConvert(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

t.Run(tt.title, func(t *testing.T) {
t.Parallel()
got, err := Convert(tt.incrementType)
Expand Down
Loading

0 comments on commit 4b3ff85

Please sign in to comment.