Skip to content

build: replace gopkg.in/yaml.v2 with gopkg.in/yaml.v3

feistel requested to merge feistel/gitlab-runner:drop/yamlv2 into main

What does this MR do?

replace gopkg.in/yaml.v2 with gopkg.in/yaml.v3

Why was this MR needed?

We already use gopkg.in/yaml.v3 as an indirect dependency so we may as well migrate to it and remove v2 from go.mod

Note: v2 is still part of the module graph.
Output of go mod why gopkg.in/yaml.v2

# gopkg.in/yaml.v2
gitlab.com/gitlab-org/gitlab-runner/commands
github.com/imdario/mergo
github.com/imdario/mergo.test
gopkg.in/yaml.v2

What's the best way to test this MR?

What are the relevant issue numbers?

Edited by feistel

Merge request reports