Skip to content

Commit

Permalink
Update to use internal testify submodule (#57)
Browse files Browse the repository at this point in the history
Updates go-jmespath to use the internal testify submodule to in order to
modify the yaml.v2 version transient dependency of testify. A version of
testify that is updated with the yaml.v2 is not compatible with Go
1.12 and older
  • Loading branch information
jasdel committed Sep 18, 2020
1 parent ff168ca commit 3d4fd11
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 14 deletions.
3 changes: 0 additions & 3 deletions Makefile
Expand Up @@ -13,9 +13,6 @@ help:
generate:
go generate ${SRC_PKGS}

get-deps:
go get -v -t ./ ./cmd/... ./compliance/... ./fuzz/...

build:
rm -f $(CMD)
go build ${SRC_PKGS}
Expand Down
2 changes: 1 addition & 1 deletion api_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/stretchr/testify/assert"
"github.com/jmespath/go-jmespath/internal/testify/assert"
)

func TestValidUncompiledExpressionSearches(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion compliance_test.go
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
"testing"

"github.com/stretchr/testify/assert"
"github.com/jmespath/go-jmespath/internal/testify/assert"
)

type TestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -2,4 +2,4 @@ module github.com/jmespath/go-jmespath

go 1.14

require github.com/stretchr/testify v1.5.1
require github.com/jmespath/go-jmespath/internal/testify v1.5.1
8 changes: 4 additions & 4 deletions go.sum
@@ -1,11 +1,11 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
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/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
2 changes: 1 addition & 1 deletion interpreter_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/stretchr/testify/assert"
"github.com/jmespath/go-jmespath/internal/testify/assert"
)

type scalars struct {
Expand Down
2 changes: 1 addition & 1 deletion lexer_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/stretchr/testify/assert"
"github.com/jmespath/go-jmespath/internal/testify/assert"
)

var lexingTests = []struct {
Expand Down
2 changes: 1 addition & 1 deletion parser_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/stretchr/testify/assert"
"github.com/jmespath/go-jmespath/internal/testify/assert"
)

var parsingErrorTests = []struct {
Expand Down
2 changes: 1 addition & 1 deletion util_test.go
Expand Up @@ -3,7 +3,7 @@ package jmespath
import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/jmespath/go-jmespath/internal/testify/assert"
)

func TestSlicePositiveStep(t *testing.T) {
Expand Down

0 comments on commit 3d4fd11

Please sign in to comment.