Skip to content

Commit a605436

Browse files
committed
[YUNIKORN-3114] change yaml package (#1027)
Change import from "gopkg.in/yaml.v3" to "go.yaml.in/yaml/v3" Closes: #1027 Signed-off-by: Peter Bacsko <[email protected]>
1 parent 718c7ea commit a605436

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ require (
3535
github.com/prometheus/common v0.45.0
3636
github.com/sasha-s/go-deadlock v0.3.5
3737
go.uber.org/zap v1.27.0
38+
go.yaml.in/yaml/v3 v3.0.4
3839
golang.org/x/exp v0.0.0-20250228200357-dead58393ab7
3940
golang.org/x/net v0.36.0
4041
golang.org/x/time v0.10.0
4142
google.golang.org/grpc v1.71.0
42-
gopkg.in/yaml.v3 v3.0.1
4343
gotest.tools/v3 v3.5.2
4444
)
4545

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
6464
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
6565
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
6666
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
67+
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
68+
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
6769
golang.org/x/exp v0.0.0-20250228200357-dead58393ab7 h1:aWwlzYV971S4BXRS9AmqwDLAD85ouC6X+pocatKY58c=
6870
golang.org/x/exp v0.0.0-20250228200357-dead58393ab7/go.mod h1:BHOTPb3L19zxehTsLoJXVaTktb06DFgmdW6Wb9s8jqk=
6971
golang.org/x/net v0.36.0 h1:vWF2fRbw4qslQsQzgFqZff+BItCvGFQqKzKIzx1rmoA=

pkg/common/configs/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"strings"
2828

2929
"go.uber.org/zap"
30-
"gopkg.in/yaml.v3"
30+
"go.yaml.in/yaml/v3"
3131

3232
"github.com/apache/yunikorn-core/pkg/log"
3333
)

pkg/common/configs/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
"gotest.tools/v3/assert"
3030

31-
"gopkg.in/yaml.v3"
31+
"go.yaml.in/yaml/v3"
3232
)
3333

3434
var emptySum = ""

pkg/webservice/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
"github.com/julienschmidt/httprouter"
3636
"github.com/prometheus/client_golang/prometheus/promhttp"
3737
"go.uber.org/zap"
38-
"gopkg.in/yaml.v3"
38+
"go.yaml.in/yaml/v3"
3939

4040
"github.com/apache/yunikorn-core/pkg/common"
4141
"github.com/apache/yunikorn-core/pkg/common/configs"

pkg/webservice/handlers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333

3434
"github.com/julienschmidt/httprouter"
3535
"github.com/prometheus/client_golang/prometheus/promhttp"
36-
"gopkg.in/yaml.v3"
36+
"go.yaml.in/yaml/v3"
3737
"gotest.tools/v3/assert"
3838

3939
"github.com/apache/yunikorn-core/pkg/common"

0 commit comments

Comments
 (0)