Skip to content

Commit c45a138

Browse files
leighmccullochgeorgelesica-wf
authored andcommitted
Add go.mod and go.sum
What === Add `go.mod` and `go.sum`, using `Go 1.11`. Why === Now that golang/go#24301 has been accepted, lets start using go.mod files alongside Godep, and keep the two in sync. Notes === There are no changes required to testify to support go.mod. The files were generated by running `go build` and `go mod tidy. Merging === This PR is intended to be merged after #659 which adds Go1.11 to the list of supported builds.
1 parent 660f15d commit c45a138

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

.travis.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ language: go
22

33
sudo: false
44

5-
go:
6-
- "1.8.x"
7-
- "1.9.x"
8-
- "1.10.x"
9-
- "1.11.x"
10-
- tip
11-
12-
script:
13-
- ./.travis.gogenerate.sh
14-
- ./.travis.gofmt.sh
15-
- ./.travis.govet.sh
16-
- go test -v -race $(go list ./... | grep -v vendor)
5+
matrix:
6+
include:
7+
- go: "1.8.x"
8+
- go: "1.9.x"
9+
- go: "1.10.x"
10+
- go: "1.11.x"
11+
env: GO111MODULE=off
12+
- go: "1.11.x"
13+
env: GO111MODULE=on
14+
- go: tip
15+
script:
16+
- ./.travis.gogenerate.sh
17+
- ./.travis.gofmt.sh
18+
- ./.travis.govet.sh
19+
- go test -v -race $(go list ./... | grep -v vendor)

go.mod

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module github.com/stretchr/testify
2+
3+
require (
4+
github.com/davecgh/go-spew v1.1.0
5+
github.com/pmezard/go-difflib v1.0.0
6+
github.com/stretchr/objx v0.1.0
7+
)

go.sum

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
2+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
4+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5+
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
6+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

0 commit comments

Comments
 (0)