Skip to content

Commit 34a6ca3

Browse files
mod: bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#85)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Chen <[email protected]>
1 parent e7a612b commit 34a6ca3

File tree

7 files changed

+22
-21
lines changed

7 files changed

+22
-21
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
name: Test
4545
strategy:
4646
matrix:
47-
go-version: [ 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x ]
47+
go-version: [ 1.16.x, 1.17.x, 1.18.x, 1.19.x ]
4848
platform: [ ubuntu-latest, macos-latest, windows-latest ]
4949
runs-on: ${{ matrix.platform }}
5050
steps:

.golangci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ linters-settings:
99

1010
linters:
1111
enable:
12-
- deadcode
12+
- unused
1313
- errcheck
1414
- gosimple
1515
- govet
1616
- ineffassign
1717
- staticcheck
18-
- structcheck
1918
- typecheck
20-
- unused
21-
- varcheck
2219
- nakedret
2320
- gofmt
2421
- rowserrcheck

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Package git-module is a Go module for Git access through shell commands.
99

1010
## Requirements
1111

12-
- Go version must be at least **1.13**.
12+
- Go version must be at least **1.16**.
1313
- Git version must be no less than **1.8.3**.
1414
- For Windows users, try to use the latest version of both.
1515

diff_test.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ func TestDiffFile(t *testing.T) {
102102
LeftLine: 0,
103103
RightLine: 1,
104104
}, {
105-
Type: DiffLineAdd,
106-
Content: `+ path = gogs/docs-api`,
105+
Type: DiffLineAdd,
106+
Content: `+ path = gogs/docs-api`,
107107
LeftLine: 0,
108108
RightLine: 2,
109109
},
@@ -203,13 +203,13 @@ index 0000000..6b08f76
203203
LeftLine: 0,
204204
RightLine: 1,
205205
}, {
206-
Type: DiffLineAdd,
207-
Content: `+ path = gogs/docs-api`,
206+
Type: DiffLineAdd,
207+
Content: `+ path = gogs/docs-api`,
208208
LeftLine: 0,
209209
RightLine: 2,
210210
}, {
211-
Type: DiffLineAdd,
212-
Content: `+ url = https://github.com/gogs/docs-api.git`,
211+
Type: DiffLineAdd,
212+
Content: `+ url = https://github.com/gogs/docs-api.git`,
213213
LeftLine: 0,
214214
RightLine: 3,
215215
},
@@ -719,8 +719,8 @@ index 0000000..6abde17
719719
LeftLine: 0,
720720
RightLine: 1,
721721
}, {
722-
Type: DiffLineAdd,
723-
Content: `+ path = gogs/docs-api`,
722+
Type: DiffLineAdd,
723+
Content: `+ path = gogs/docs-api`,
724724
LeftLine: 0,
725725
RightLine: 2,
726726
},
@@ -783,8 +783,8 @@ index 0000000..6b08f76
783783
LeftLine: 0,
784784
RightLine: 1,
785785
}, {
786-
Type: DiffLineAdd,
787-
Content: `+ path = gogs/docs-api`,
786+
Type: DiffLineAdd,
787+
Content: `+ path = gogs/docs-api`,
788788
LeftLine: 0,
789789
RightLine: 2,
790790
},

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/gogs/git-module
22

3-
go 1.13
3+
go 1.16
44

55
require (
66
github.com/mcuadros/go-version v0.0.0-20190308113854-92cdf37c5b75
7-
github.com/stretchr/testify v1.8.0
7+
github.com/stretchr/testify v1.8.1
88
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
99
)

go.sum

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
77
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
88
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
99
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
10+
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
1011
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
11-
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
1212
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
13+
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
14+
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
1315
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
1416
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
1517
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=

signature.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ type Signature struct {
2323
// parseSignature parses signature information from the (uncompressed) commit
2424
// line, which looks like the following but without the "author " at the
2525
// beginning:
26-
// author Patrick Gundlach <[email protected]> 1378823654 +0200
27-
// author Patrick Gundlach <[email protected]> Thu Apr 07 22:13:13 2005 +0200
26+
//
27+
// author Patrick Gundlach <[email protected]> 1378823654 +0200
28+
// author Patrick Gundlach <[email protected]> Thu Apr 07 22:13:13 2005 +0200
29+
//
2830
// This method should only be used for parsing author and committer.
2931
func parseSignature(line []byte) (*Signature, error) {
3032
emailStart := bytes.IndexByte(line, '<')

0 commit comments

Comments
 (0)