Created
December 8, 2025 09:40
-
-
Save scop/57f94f2bf97fb6a2d01349fa59d88530 to your computer and use it in GitHub Desktop.
gopkg.in/[email protected] to go.yaml.in/yaml/[email protected]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -NruwB gopkg.in/[email protected]/decode_test.go go.yaml.in/yaml/[email protected]/decode_test.go | |
| --- gopkg.in/[email protected]/decode_test.go 2025-12-08 11:38:41.644691341 +0200 | |
| +++ go.yaml.in/yaml/[email protected]/decode_test.go 2025-12-08 11:38:42.523274474 +0200 | |
| @@ -9,7 +9,7 @@ | |
| "time" | |
| . "gopkg.in/check.v1" | |
| - "gopkg.in/yaml.v2" | |
| + "go.yaml.in/yaml/v2" | |
| ) | |
| var unmarshalIntTest = 123 | |
| diff -NruwB gopkg.in/[email protected]/encode_test.go go.yaml.in/yaml/[email protected]/encode_test.go | |
| --- gopkg.in/[email protected]/encode_test.go 2025-12-08 11:38:41.644691341 +0200 | |
| +++ go.yaml.in/yaml/[email protected]/encode_test.go 2025-12-08 11:38:42.523718853 +0200 | |
| @@ -12,7 +12,7 @@ | |
| "os" | |
| . "gopkg.in/check.v1" | |
| - "gopkg.in/yaml.v2" | |
| + "go.yaml.in/yaml/v2" | |
| ) | |
| type jsonNumberT string | |
| diff -NruwB gopkg.in/[email protected]/example_embedded_test.go go.yaml.in/yaml/[email protected]/example_embedded_test.go | |
| --- gopkg.in/[email protected]/example_embedded_test.go 2025-12-08 11:38:41.644691341 +0200 | |
| +++ go.yaml.in/yaml/[email protected]/example_embedded_test.go 2025-12-08 11:38:42.523718853 +0200 | |
| @@ -4,7 +4,7 @@ | |
| "fmt" | |
| "log" | |
| - "gopkg.in/yaml.v2" | |
| + "go.yaml.in/yaml/v2" | |
| ) | |
| // An example showing how to unmarshal embedded | |
| diff -NruwB gopkg.in/[email protected]/go.mod go.yaml.in/yaml/[email protected]/go.mod | |
| --- gopkg.in/[email protected]/go.mod 2025-12-08 11:38:41.644691341 +0200 | |
| +++ go.yaml.in/yaml/[email protected]/go.mod 2025-12-08 11:38:42.523718853 +0200 | |
| @@ -1,4 +1,4 @@ | |
| -module gopkg.in/yaml.v2 | |
| +module go.yaml.in/yaml/v2 | |
| go 1.15 | |
| diff -NruwB gopkg.in/[email protected]/limit_test.go go.yaml.in/yaml/[email protected]/limit_test.go | |
| --- gopkg.in/[email protected]/limit_test.go 2025-12-08 11:38:41.644691341 +0200 | |
| +++ go.yaml.in/yaml/[email protected]/limit_test.go 2025-12-08 11:38:42.523718853 +0200 | |
| @@ -5,7 +5,7 @@ | |
| "testing" | |
| . "gopkg.in/check.v1" | |
| - "gopkg.in/yaml.v2" | |
| + "go.yaml.in/yaml/v2" | |
| ) | |
| var limitTests = []struct { | |
| diff -NruwB gopkg.in/[email protected]/README.md go.yaml.in/yaml/[email protected]/README.md | |
| --- gopkg.in/[email protected]/README.md 2025-12-08 11:38:41.643907526 +0200 | |
| +++ go.yaml.in/yaml/[email protected]/README.md 2025-12-08 11:38:42.523274474 +0200 | |
| @@ -20,18 +20,16 @@ | |
| Installation and usage | |
| ---------------------- | |
| -The import path for the package is *gopkg.in/yaml.v2*. | |
| +The import path for the package is *go.yaml.in/yaml/v2*. | |
| To install it, run: | |
| - go get gopkg.in/yaml.v2 | |
| + go get go.yaml.in/yaml/v2 | |
| API documentation | |
| ----------------- | |
| -If opened in a browser, the import path itself leads to the API documentation: | |
| - | |
| - * [https://gopkg.in/yaml.v2](https://gopkg.in/yaml.v2) | |
| +See: <https://pkg.go.dev/go.yaml.in/yaml/v2> | |
| API stability | |
| ------------- | |
| @@ -55,7 +53,7 @@ | |
| "fmt" | |
| "log" | |
| - "gopkg.in/yaml.v2" | |
| + "go.yaml.in/yaml/v2" | |
| ) | |
| var data = ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| tmpdir=$(mktemp -d) | |
| trap "rm -rf \"$tmpdir\"" EXIT | |
| cd "$tmpdir" | |
| # 2.4.0 are identical | |
| gopkg_in_version=2.4.0 | |
| go_yaml_in_version=2.4.1 | |
| diff_switches=-NruwB | |
| git clone --quiet --depth=1 --branch="v$gopkg_in_version" \ | |
| https://github.com/go-yaml/yaml.git \ | |
| "gopkg.in/yaml.v${gopkg_in_version:0:1}@v$gopkg_in_version" | |
| rm -rf "gopkg.in/yaml.v${gopkg_in_version:0:1}@v$gopkg_in_version/.git" | |
| git clone --quiet --depth=1 --branch="v$go_yaml_in_version" \ | |
| https://github.com/yaml/go-yaml.git \ | |
| "go.yaml.in/yaml/v${go_yaml_in_version:0:1}@v$go_yaml_in_version" | |
| rm -rf "go.yaml.in/yaml/v${go_yaml_in_version:0:1}@v$go_yaml_in_version/.git" | |
| diff "$diff_switches" \ | |
| "gopkg.in/yaml.v${gopkg_in_version:0:1}@v$gopkg_in_version" \ | |
| "go.yaml.in/yaml/v${go_yaml_in_version:0:1}@v$go_yaml_in_version" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment