Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save scop/57f94f2bf97fb6a2d01349fa59d88530 to your computer and use it in GitHub Desktop.

Select an option

Save scop/57f94f2bf97fb6a2d01349fa59d88530 to your computer and use it in GitHub Desktop.
gopkg.in/yaml.v2@v2.4.0 to go.yaml.in/yaml/v2@v2.4.1.diff
diff -NruwB gopkg.in/yaml.v2@v2.4.0/decode_test.go go.yaml.in/yaml/v2@v2.4.1/decode_test.go
--- gopkg.in/yaml.v2@v2.4.0/decode_test.go 2025-12-08 11:38:41.644691341 +0200
+++ go.yaml.in/yaml/v2@v2.4.1/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/yaml.v2@v2.4.0/encode_test.go go.yaml.in/yaml/v2@v2.4.1/encode_test.go
--- gopkg.in/yaml.v2@v2.4.0/encode_test.go 2025-12-08 11:38:41.644691341 +0200
+++ go.yaml.in/yaml/v2@v2.4.1/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/yaml.v2@v2.4.0/example_embedded_test.go go.yaml.in/yaml/v2@v2.4.1/example_embedded_test.go
--- gopkg.in/yaml.v2@v2.4.0/example_embedded_test.go 2025-12-08 11:38:41.644691341 +0200
+++ go.yaml.in/yaml/v2@v2.4.1/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/yaml.v2@v2.4.0/go.mod go.yaml.in/yaml/v2@v2.4.1/go.mod
--- gopkg.in/yaml.v2@v2.4.0/go.mod 2025-12-08 11:38:41.644691341 +0200
+++ go.yaml.in/yaml/v2@v2.4.1/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/yaml.v2@v2.4.0/limit_test.go go.yaml.in/yaml/v2@v2.4.1/limit_test.go
--- gopkg.in/yaml.v2@v2.4.0/limit_test.go 2025-12-08 11:38:41.644691341 +0200
+++ go.yaml.in/yaml/v2@v2.4.1/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/yaml.v2@v2.4.0/README.md go.yaml.in/yaml/v2@v2.4.1/README.md
--- gopkg.in/yaml.v2@v2.4.0/README.md 2025-12-08 11:38:41.643907526 +0200
+++ go.yaml.in/yaml/v2@v2.4.1/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 = `
#!/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