Skip to content

Commit

Permalink
[misc] Upgrade to yaml.v3
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed May 28, 2020
1 parent 54f0761 commit 77824b7
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion coconut/configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

var log = logger.New(logrus.StandardLogger(), "coconut")
Expand Down
2 changes: 1 addition & 1 deletion coconut/configuration/configurationutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"os"
"strings"
"encoding/json"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

var(
Expand Down
2 changes: 1 addition & 1 deletion coconut/control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
"time"

"github.com/xlab/treeprint"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"

"github.com/AliceO2Group/Control/coconut"
"github.com/AliceO2Group/Control/coconut/protos"
Expand Down
2 changes: 0 additions & 2 deletions common/gera/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ package gera

import (
"github.com/imdario/mergo"
"gopkg.in/yaml.v2"
)

type Map interface {
yaml.Unmarshaler
Wrap(m Map) Map
IsHierarchyRoot() bool
HierarchyContains(m Map) bool
Expand Down
2 changes: 0 additions & 2 deletions common/gera/stringmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ package gera

import (
"github.com/imdario/mergo"
"gopkg.in/yaml.v2"
)

type StringMap interface {
yaml.Unmarshaler
Wrap(m StringMap) StringMap
IsHierarchyRoot() bool
HierarchyContains(m StringMap) bool
Expand Down
2 changes: 1 addition & 1 deletion configuration/consulsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"errors"
"strconv"
"strings"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

type ConsulSource struct {
Expand Down
2 changes: 1 addition & 1 deletion configuration/source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
. "github.com/AliceO2Group/Control/configuration"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

var _ = Describe("Source", func() {
Expand Down
2 changes: 1 addition & 1 deletion configuration/yamlsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"strconv"
"strings"

"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

type YamlSource struct {
Expand Down
2 changes: 1 addition & 1 deletion core/task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"github.com/AliceO2Group/Control/common/utils"
"github.com/AliceO2Group/Control/core/repos"
"github.com/AliceO2Group/Control/core/the"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"

"github.com/AliceO2Group/Control/core/controlcommands"
"github.com/AliceO2Group/Control/core/task/channel"
Expand Down
2 changes: 1 addition & 1 deletion core/workflow/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"github.com/AliceO2Group/Control/core/the"
"github.com/k0kubun/pp"
"github.com/spf13/viper"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// FIXME: workflowPath should be of type configuration.Path, not string
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ require (
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/ini.v1 v1.55.0 // indirect
gopkg.in/src-d/go-git.v4 v4.13.1
gopkg.in/yaml.v2 v2.2.8
gopkg.in/yaml.v2 v2.2.8 // indirect
gopkg.in/yaml.v3 v3.0.0-20200506231410-2ff61e1afc86
honnef.co/go/tools v0.0.1-2020.1.3 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200506231410-2ff61e1afc86 h1:OfFoIUYv/me30yv7XlMy4F9RJw8DEm8WQ6QG1Ph4bH0=
gopkg.in/yaml.v3 v3.0.0-20200506231410-2ff61e1afc86/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM=
Expand Down
2 changes: 1 addition & 1 deletion occ/peanut/flatten/flatten.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import (
"errors"
"strconv"

"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// The presentation style of keys.
Expand Down

0 comments on commit 77824b7

Please sign in to comment.