Skip to content

Commit d1a6d46

Browse files
committed
Rename module to be able to use from other modules without 'replace'
1 parent ce83d9e commit d1a6d46

8 files changed

+33
-32
lines changed

.github/workflows/go.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Check out code into the Go module directory
2929
uses: actions/checkout@v2
3030
with:
31-
path: ${{ github.workspace }}/go/src/gopkg.in/yaml.v3
31+
path: ${{ github.workspace }}/go/src/github.com/zillow/go-yaml.v3
3232
- name: Set up Go ${{ matrix.go }}
3333
if: matrix.go != 'tip'
3434
uses: actions/setup-go@v2
@@ -56,6 +56,6 @@ jobs:
5656
echo "$GOROOT/bin" >> $GITHUB_PATH
5757
- run: go version
5858
- run: go get -t ./...
59-
working-directory: ${{ github.workspace }}/go/src/gopkg.in/yaml.v3
59+
working-directory: ${{ github.workspace }}/go/src/github.com/zillow/go-yaml.v3
6060
- run: go test .
61-
working-directory: ${{ github.workspace }}/go/src/gopkg.in/yaml.v3
61+
working-directory: ${{ github.workspace }}/go/src/github.com/zillow/go-yaml.v3

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ supported since they're a poor design and are gone in YAML 1.2.
3636
Installation and usage
3737
----------------------
3838

39-
The import path for the package is *gopkg.in/yaml.v3*.
39+
The import path for the package is *github.com/zillow/go-yaml.v3*.
4040

4141
To install it, run:
4242

43-
go get gopkg.in/yaml.v3
43+
go get github.com/zillow/go-yaml.v3
4444

4545
API documentation
4646
-----------------
4747

4848
If opened in a browser, the import path itself leads to the API documentation:
4949

50-
- [https://gopkg.in/yaml.v3](https://gopkg.in/yaml.v3)
50+
- [https://github.com/zillow/go-yaml.v3](https://github.com/zillow/go-yaml.v3)
5151

5252
API stability
5353
-------------
@@ -72,7 +72,7 @@ import (
7272
"fmt"
7373
"log"
7474

75-
"gopkg.in/yaml.v3"
75+
"github.com/zillow/go-yaml.v3"
7676
)
7777

7878
var data = `

decode_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"strings"
2626
"time"
2727

28+
"github.com/zillow/go-yaml.v3"
2829
. "gopkg.in/check.v1"
29-
"gopkg.in/yaml.v3"
3030
)
3131

3232
var unmarshalIntTest = 123

encode_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
"net"
2727
"os"
2828

29+
"github.com/zillow/go-yaml.v3"
2930
. "gopkg.in/check.v1"
30-
"gopkg.in/yaml.v3"
3131
)
3232

3333
type jsonNumberT string

example_embedded_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"fmt"
2020
"log"
2121

22-
"gopkg.in/yaml.v3"
22+
"github.com/zillow/go-yaml.v3"
2323
)
2424

2525
// An example showing how to unmarshal embedded

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module "gopkg.in/yaml.v3"
1+
module "github.com/zillow/go-yaml.v3"
22

33
require (
44
"gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405

limit_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"strings"
55
"testing"
66

7+
"github.com/zillow/go-yaml.v3"
78
. "gopkg.in/check.v1"
8-
"gopkg.in/yaml.v3"
99
)
1010

1111
var limitTests = []struct {

node_test.go

+21-20
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ import (
2020
"fmt"
2121
"os"
2222

23-
. "gopkg.in/check.v1"
24-
"gopkg.in/yaml.v3"
2523
"io"
2624
"strings"
25+
26+
"github.com/zillow/go-yaml.v3"
27+
. "gopkg.in/check.v1"
2728
)
2829

2930
var nodeTests = []struct {
@@ -688,17 +689,17 @@ var nodeTests = []struct {
688689
Line: 3,
689690
Column: 4,
690691
}, {
691-
Kind: yaml.ScalarNode,
692-
Tag: "!!str",
693-
Value: "c",
692+
Kind: yaml.ScalarNode,
693+
Tag: "!!str",
694+
Value: "c",
694695
LineComment: "# IC",
695-
Line: 5,
696-
Column: 1,
696+
Line: 5,
697+
Column: 1,
697698
}, {
698-
Kind: yaml.SequenceNode,
699-
Tag: "!!seq",
700-
Line: 6,
701-
Column: 3,
699+
Kind: yaml.SequenceNode,
700+
Tag: "!!seq",
701+
Line: 6,
702+
Column: 3,
702703
Content: []*yaml.Node{{
703704
Kind: yaml.ScalarNode,
704705
Tag: "!!str",
@@ -707,17 +708,17 @@ var nodeTests = []struct {
707708
Column: 5,
708709
}},
709710
}, {
710-
Kind: yaml.ScalarNode,
711-
Tag: "!!str",
712-
Value: "d",
711+
Kind: yaml.ScalarNode,
712+
Tag: "!!str",
713+
Value: "d",
713714
LineComment: "# ID",
714-
Line: 7,
715-
Column: 1,
715+
Line: 7,
716+
Column: 1,
716717
}, {
717-
Kind: yaml.MappingNode,
718-
Tag: "!!map",
719-
Line: 8,
720-
Column: 3,
718+
Kind: yaml.MappingNode,
719+
Tag: "!!map",
720+
Line: 8,
721+
Column: 3,
721722
Content: []*yaml.Node{{
722723
Kind: yaml.ScalarNode,
723724
Tag: "!!str",

0 commit comments

Comments
 (0)