summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2022-11-21 16:36:59 +0800
committerGitHub <noreply@github.com>2022-11-21 16:36:59 +0800
commite4eaa68a2b2355c7333406fdcbb8b118677b95df (patch)
treea4027ec3b2efc7bf4d2f22f51676f3dc26e829e3 /services
parentb4802b9b2eae044e35f022dc7116986e4762a944 (diff)
downloadgitea-e4eaa68a2b2355c7333406fdcbb8b118677b95df.tar.gz
gitea-e4eaa68a2b2355c7333406fdcbb8b118677b95df.zip
Replace yaml.v2 with yaml.v3 (#21832)
I don't see why we have to use two versions of yaml. The difference between the two versions has nothing to do with our usage.
Diffstat (limited to 'services')
-rw-r--r--services/migrations/dump.go2
-rw-r--r--services/migrations/restore.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/services/migrations/dump.go b/services/migrations/dump.go
index 4ab4539c89..8103e2faac 100644
--- a/services/migrations/dump.go
+++ b/services/migrations/dump.go
@@ -26,7 +26,7 @@ import (
"code.gitea.io/gitea/modules/structs"
"github.com/google/uuid"
- "gopkg.in/yaml.v2"
+ "gopkg.in/yaml.v3"
)
var _ base.Uploader = &RepositoryDumper{}
diff --git a/services/migrations/restore.go b/services/migrations/restore.go
index c3fbcbb25f..10fe8c4ee8 100644
--- a/services/migrations/restore.go
+++ b/services/migrations/restore.go
@@ -13,7 +13,7 @@ import (
base "code.gitea.io/gitea/modules/migration"
- "gopkg.in/yaml.v2"
+ "gopkg.in/yaml.v3"
)
// RepositoryRestorer implements an Downloader from the local directory