Skip to content

Commit

Permalink
build: Upgrade yaml library to v3
Browse files Browse the repository at this point in the history
Upgrade yaml library to v3 to consist with the edgex-go edgexfoundry/edgex-go#3060

Close edgexfoundry#452

Signed-off-by: weichou <[email protected]>
  • Loading branch information
weichou1229 committed Jan 22, 2021
1 parent ec144b2 commit 283b2cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/go-stack/stack v1.8.0 // indirect
github.com/google/uuid v1.1.5
github.com/stretchr/testify v1.5.1
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
)

go 1.15
2 changes: 1 addition & 1 deletion v2/dtos/requests/deviceprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package requests

import (
"encoding/json"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"

"github.com/edgexfoundry/go-mod-core-contracts/v2/errors"
"github.com/edgexfoundry/go-mod-core-contracts/v2/v2"
Expand Down
2 changes: 1 addition & 1 deletion v2/dtos/requests/deviceprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package requests
import (
"encoding/json"
"fmt"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
"testing"

"github.com/edgexfoundry/go-mod-core-contracts/v2/v2"
Expand Down

0 comments on commit 283b2cf

Please sign in to comment.