update imports for v2 module path

This commit is contained in:
Conor Nosal 2019-12-04 00:10:28 -05:00 committed by Mike Farah
parent 95fec2984e
commit 5fc13bdccd
9 changed files with 11 additions and 11 deletions

View File

@ -7,7 +7,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/mikefarah/yq/test" "github.com/mikefarah/yq/v2/test"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -3,7 +3,7 @@ package marshal
import ( import (
"testing" "testing"
"github.com/mikefarah/yq/test" "github.com/mikefarah/yq/v2/test"
) )
func TestJsonToString(t *testing.T) { func TestJsonToString(t *testing.T) {

View File

@ -3,7 +3,7 @@ package marshal
import ( import (
"testing" "testing"
"github.com/mikefarah/yq/test" "github.com/mikefarah/yq/v2/test"
) )
func TestYamlToString(t *testing.T) { func TestYamlToString(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/mikefarah/yq/test" "github.com/mikefarah/yq/v2/test"
logging "gopkg.in/op/go-logging.v1" logging "gopkg.in/op/go-logging.v1"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/mikefarah/yq/test" "github.com/mikefarah/yq/v2/test"
logging "gopkg.in/op/go-logging.v1" logging "gopkg.in/op/go-logging.v1"
) )

View File

@ -3,7 +3,7 @@ package yqlib
import ( import (
"testing" "testing"
"github.com/mikefarah/yq/test" "github.com/mikefarah/yq/v2/test"
) )
var parsePathsTests = []struct { var parsePathsTests = []struct {

View File

@ -3,7 +3,7 @@ package yqlib
import ( import (
"testing" "testing"
"github.com/mikefarah/yq/test" "github.com/mikefarah/yq/v2/test"
) )
var parseValueTests = []struct { var parseValueTests = []struct {

4
yq.go
View File

@ -10,8 +10,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/mikefarah/yq/pkg/marshal" "github.com/mikefarah/yq/v2/pkg/marshal"
"github.com/mikefarah/yq/pkg/yqlib" "github.com/mikefarah/yq/v2/pkg/yqlib"
errors "github.com/pkg/errors" errors "github.com/pkg/errors"

View File

@ -5,8 +5,8 @@ import (
"runtime" "runtime"
"testing" "testing"
"github.com/mikefarah/yq/pkg/marshal" "github.com/mikefarah/yq/v2/pkg/marshal"
"github.com/mikefarah/yq/test" "github.com/mikefarah/yq/v2/test"
) )
func TestMultilineString(t *testing.T) { func TestMultilineString(t *testing.T) {