Skip to content

Commit 78a57d8

Browse files
committed
chore: update dependencies (#143)
Signed-off-by: Tronje Krop <tronje.krop@jactors.de>
1 parent b4015a7 commit 78a57d8

18 files changed

Lines changed: 51 additions & 27 deletions

File tree

.github/workflows/build.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: Go Build
22
on: [push]
3+
permissions:
4+
contents: read
5+
36
jobs:
47
linux:
58
runs-on: ubuntu-latest
69
steps:
710
- name: Set up Go
811
uses: actions/setup-go@v5
912
with:
10-
go-version: 1.25
13+
go-version: 1.26
1114
cache: false
1215

1316
- name: Checkout code
@@ -31,7 +34,7 @@ jobs:
3134
# - name: Set up Go
3235
# uses: actions/setup-go@v5
3336
# with:
34-
# go-version: 1.25
37+
# go-version: 1.26
3538
# cache: false
3639

3740
# - name: Checkout code
@@ -53,7 +56,7 @@ jobs:
5356
- name: Set up Go
5457
uses: actions/setup-go@v5
5558
with:
56-
go-version: 1.25
59+
go-version: 1.26
5760

5861
- name: Checkout code
5962
uses: actions/checkout@v4

.markdownlint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ MD022:
3333
lines_above: 2
3434
# Blank lines below heading
3535
lines_below: 1
36+
37+
# MD041/first-line-heading - First line does not need to be a top level heading.
38+
MD041: false

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ TMPDIR ?= /tmp
1818
# Setup default go-make installation flags.
1919
INSTALL_FLAGS ?= -mod=readonly -buildvcs=auto
2020
# Setup go-make version to use desired build and config scripts.
21-
GOMAKE_DEP ?= github.com/tkrop/go-make@v0.0.166
21+
GOMAKE_DEP ?= github.com/tkrop/go-make@v0.2.5
2222
# Request targets from go-make show-targets target.
2323
TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \
2424
$(GO) install $(INSTALL_FLAGS) $(GOMAKE_DEP) >&2 && \

Makefile.ext

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
#@ updates the mock tool installing the latest version
3+
update-mock:: install-mock

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/tkrop/go-testing
22

3-
go 1.25.7
3+
go 1.26.2
44

55
require (
66
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
@@ -10,13 +10,13 @@ require (
1010
github.com/stretchr/testify v1.11.1
1111
go.uber.org/mock v0.6.0
1212
golang.org/x/text v0.30.0
13-
golang.org/x/tools v0.41.0
13+
golang.org/x/tools v0.44.0
1414
)
1515

1616
require (
1717
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect
18-
golang.org/x/mod v0.32.0 // indirect
19-
golang.org/x/sync v0.19.0 // indirect
18+
golang.org/x/mod v0.35.0 // indirect
19+
golang.org/x/sync v0.20.0 // indirect
2020
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
2121
gopkg.in/yaml.v3 v3.0.1 // indirect
2222
)

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu
2828
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
2929
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
3030
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
31-
golang.org/x/mod v0.32.0 h1:9F4d3PHLljb6x//jOyokMv3eX+YDeepZSEo3mFJy93c=
32-
golang.org/x/mod v0.32.0/go.mod h1:SgipZ/3h2Ci89DlEtEXWUk/HteuRin+HHhN+WbNhguU=
33-
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
34-
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
31+
golang.org/x/mod v0.35.0 h1:Ww1D637e6Pg+Zb2KrWfHQUnH2dQRLBQyAtpr/haaJeM=
32+
golang.org/x/mod v0.35.0/go.mod h1:+GwiRhIInF8wPm+4AoT6L0FA1QWAad3OMdTRx4tFYlU=
33+
golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
34+
golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
3535
golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k=
3636
golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM=
37-
golang.org/x/tools v0.41.0 h1:a9b8iMweWG+S0OBnlU36rzLp20z1Rp10w+IY2czHTQc=
38-
golang.org/x/tools v0.41.0/go.mod h1:XSY6eDqxVNiYgezAVqqCeihT4j1U2CCsqvH3WhQpnlg=
37+
golang.org/x/tools v0.44.0 h1:UP4ajHPIcuMjT1GqzDWRlalUEoY+uzoZKnhOjbIPD2c=
38+
golang.org/x/tools v0.44.0/go.mod h1:KA0AfVErSdxRZIsOVipbv3rQhVXTnlU6UhKxHd1seDI=
3939
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
4040
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
4141
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=

internal/mock/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func NewFiles(mocks []*Mock, imports ...*Import) []*File {
276276
}
277277
}
278278

279-
files := []*File{}
279+
files := make([]*File, 0, len(builders))
280280
for _, builder := range builders {
281281
file := builder.AddImports(imports...).Build()
282282
files = append(files, file)

internal/reflect/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// Package reflect contains a collection of helpful generic functions that
22
// support reflection. It is currently not part of the public interface and
33
// must be consider as highly instable.
4+
//
5+
//revive:disable:package-naming // intentional override.
46
package reflect

internal/reflect/random.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//revive:disable:package-naming // intentional override.
12
package reflect
23

34
import (
@@ -104,7 +105,7 @@ func (r *random) newPrimitive(kind reflect.Kind) any {
104105
case reflect.Uint64:
105106
return uint64(r.rand.Intn(2<<r.length) + 1) // #nosec G115 -- intentional use.
106107
case reflect.Uintptr:
107-
return uintptr(r.rand.Intn(2<<r.length) + 1)
108+
return uintptr(r.rand.Intn(2<<r.length) + 1) // #nosec G115 -- intentional use.
108109
case reflect.Float32:
109110
return float32(r.rand.Float64())
110111
case reflect.Float64:

internal/reflect/random_internal_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//revive:disable:package-naming // intentional override.
12
package reflect
23

34
import (

0 commit comments

Comments
 (0)