Skip to content

mod: bump github.com/stretchr/testify from 1.8.0 to 1.8.1 #85

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

Merged
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
name: Test
strategy:
matrix:
go-version: [ 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x ]
go-version: [ 1.16.x, 1.17.x, 1.18.x, 1.19.x ]
platform: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
5 changes: 1 addition & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ linters-settings:

linters:
enable:
- deadcode
- unused
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- nakedret
- gofmt
- rowserrcheck
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Package git-module is a Go module for Git access through shell commands.

## Requirements

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

Expand Down
20 changes: 10 additions & 10 deletions diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ func TestDiffFile(t *testing.T) {
LeftLine: 0,
RightLine: 1,
}, {
Type: DiffLineAdd,
Content: `+ path = gogs/docs-api`,
Type: DiffLineAdd,
Content: `+ path = gogs/docs-api`,
LeftLine: 0,
RightLine: 2,
},
Expand Down Expand Up @@ -203,13 +203,13 @@ index 0000000..6b08f76
LeftLine: 0,
RightLine: 1,
}, {
Type: DiffLineAdd,
Content: `+ path = gogs/docs-api`,
Type: DiffLineAdd,
Content: `+ path = gogs/docs-api`,
LeftLine: 0,
RightLine: 2,
}, {
Type: DiffLineAdd,
Content: `+ url = https://github.com/gogs/docs-api.git`,
Type: DiffLineAdd,
Content: `+ url = https://github.com/gogs/docs-api.git`,
LeftLine: 0,
RightLine: 3,
},
Expand Down Expand Up @@ -719,8 +719,8 @@ index 0000000..6abde17
LeftLine: 0,
RightLine: 1,
}, {
Type: DiffLineAdd,
Content: `+ path = gogs/docs-api`,
Type: DiffLineAdd,
Content: `+ path = gogs/docs-api`,
LeftLine: 0,
RightLine: 2,
},
Expand Down Expand Up @@ -783,8 +783,8 @@ index 0000000..6b08f76
LeftLine: 0,
RightLine: 1,
}, {
Type: DiffLineAdd,
Content: `+ path = gogs/docs-api`,
Type: DiffLineAdd,
Content: `+ path = gogs/docs-api`,
LeftLine: 0,
RightLine: 2,
},
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/gogs/git-module

go 1.13
go 1.16

require (
github.com/mcuadros/go-version v0.0.0-20190308113854-92cdf37c5b75
github.com/stretchr/testify v1.8.0
github.com/stretchr/testify v1.8.1
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
)
4 changes: 3 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
Expand Down
6 changes: 4 additions & 2 deletions signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ type Signature struct {
// parseSignature parses signature information from the (uncompressed) commit
// line, which looks like the following but without the "author " at the
// beginning:
// author Patrick Gundlach <[email protected]> 1378823654 +0200
// author Patrick Gundlach <[email protected]> Thu Apr 07 22:13:13 2005 +0200
//
// author Patrick Gundlach <[email protected]> 1378823654 +0200
// author Patrick Gundlach <[email protected]> Thu Apr 07 22:13:13 2005 +0200
//
// This method should only be used for parsing author and committer.
func parseSignature(line []byte) (*Signature, error) {
emailStart := bytes.IndexByte(line, '<')
Expand Down