Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency updates #259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
default_stages: [commit]
default_stages: [pre-commit]
exclude: ^tests/data/
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.5.0
rev: v9.18.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-json
exclude: ^(.devcontainer/)
Expand All @@ -25,22 +25,22 @@ repos:
args: [--notitle]
exclude: ^(SUPPORT|\.github/ISSUE_TEMPLATE/)
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
rev: v0.42.0
hooks:
- id: markdownlint
exclude: >-
^(docs/arch/adr-template\.md|\.github/ISSUE_TEMPLATE/|\.stentor\.d/)
- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
rev: v1.35.1
hooks:
- id: yamllint
exclude: ^(.github/workflows/)
- repo: https://github.com/rhysd/actionlint
rev: v1.6.26
rev: v1.7.3
hooks:
- id: actionlint
- repo: https://github.com/golangci/golangci-lint
rev: v1.54.2
rev: v1.61.0
hooks:
- id: golangci-lint
args: [--allow-parallel-runners]
Expand Down
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
Loading