From b5f23d13b8dea57d294f2601a636c045fa2c870e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 26 Jun 2022 18:23:54 +0800 Subject: [PATCH] yaml.v2 -> yaml.v3 --- file.go | 2 +- go.mod | 2 +- go.sum | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/file.go b/file.go index 73a33f7..3e4380b 100644 --- a/file.go +++ b/file.go @@ -15,7 +15,7 @@ import ( "os" "strings" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) // File ... diff --git a/go.mod b/go.mod index b42dd56..2797ed3 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module git.zhangdeman.cn/zhangdeman/command go 1.17 -require gopkg.in/yaml.v2 v2.4.0 // indirect +require gopkg.in/yaml.v3 v3.0.1 diff --git a/go.sum b/go.sum index 7534661..a62c313 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,4 @@ +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=