From e488342451601dac715ede0933e4ed1f961754ea Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Thu, 26 May 2022 17:47:05 +0800 Subject: [PATCH] fix: upgrade to yaml v3 --- config/config.go | 2 +- go.mod | 1 - rules/provider/provider.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index 4d620f8e..5f7eff65 100644 --- a/config/config.go +++ b/config/config.go @@ -36,7 +36,7 @@ import ( "github.com/Dreamacro/clash/log" T "github.com/Dreamacro/clash/tunnel" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) // General config diff --git a/go.mod b/go.mod index 627ae2d5..a7904e12 100644 --- a/go.mod +++ b/go.mod @@ -32,7 +32,6 @@ require ( golang.zx2c4.com/wireguard v0.0.0-20220407013110-ef5c587f782d golang.zx2c4.com/wireguard/windows v0.5.4-0.20220328111914-004c22c5647e google.golang.org/protobuf v1.28.0 - gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.0 gvisor.dev/gvisor v0.0.0-20220527053002-8ab279227ac8 ) diff --git a/rules/provider/provider.go b/rules/provider/provider.go index f2a4547d..a92df718 100644 --- a/rules/provider/provider.go +++ b/rules/provider/provider.go @@ -4,7 +4,7 @@ import ( "encoding/json" C "github.com/Dreamacro/clash/constant" P "github.com/Dreamacro/clash/constant/provider" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "runtime" "time" )