Skip to content

Commit f67cdf9

Browse files
authored
Merge pull request #2304 from ripienaar/dependencies
(misc) Move to new yaml library
2 parents 602adbe + 55934f1 commit f67cdf9

File tree

12 files changed

+35
-29
lines changed

12 files changed

+35
-29
lines changed

aagent/machine/machine.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ import (
1414
"sync"
1515
"time"
1616

17+
"github.com/goccy/go-yaml"
18+
"github.com/looplab/fsm"
19+
"github.com/nats-io/jsm.go"
20+
"github.com/sirupsen/logrus"
21+
1722
"github.com/choria-io/go-choria/aagent/model"
1823
"github.com/choria-io/go-choria/aagent/watchers"
1924
"github.com/choria-io/go-choria/backoff"
2025
"github.com/choria-io/go-choria/inter"
2126
"github.com/choria-io/go-choria/internal/util"
2227
"github.com/choria-io/go-choria/lifecycle"
23-
"github.com/ghodss/yaml"
24-
"github.com/looplab/fsm"
25-
"github.com/nats-io/jsm.go"
26-
"github.com/sirupsen/logrus"
2728
)
2829

2930
const dataFileName = "machine_data.json"

aagent/machine/machine_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ import (
1212
"testing"
1313
"time"
1414

15+
"github.com/goccy/go-yaml"
16+
"github.com/sirupsen/logrus"
17+
1518
"github.com/choria-io/go-choria/aagent/plugin"
1619
"github.com/choria-io/go-choria/aagent/watchers"
17-
"github.com/ghodss/yaml"
18-
"github.com/sirupsen/logrus"
1920

2021
. "github.com/onsi/ginkgo/v2"
2122
. "github.com/onsi/gomega"

aagent/watchers/ccmmanifestwatcher/ccmmanifest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"sync"
1717
"time"
1818

19-
"github.com/ghodss/yaml"
19+
"github.com/goccy/go-yaml"
2020

2121
"github.com/choria-io/ccm/manager"
2222
ccmmodel "github.com/choria-io/ccm/model"

aagent/watchers/machineswatcher/manager/plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021, R.I. Pienaar and the Choria Project contributors
1+
// Copyright (c) 2021-2025, R.I. Pienaar and the Choria Project contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

@@ -7,9 +7,10 @@ package machines_manager
77
import (
88
_ "embed"
99

10+
"github.com/goccy/go-yaml"
11+
1012
"github.com/choria-io/go-choria/aagent/machine"
1113
"github.com/choria-io/go-choria/aagent/plugin"
12-
"github.com/ghodss/yaml"
1314
)
1415

1516
var (

aagent/watchers/pluginswatcher/machinesmanager/plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021, R.I. Pienaar and the Choria Project contributors
1+
// Copyright (c) 2021-2025, R.I. Pienaar and the Choria Project contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

@@ -7,9 +7,10 @@ package machines_manager
77
import (
88
_ "embed"
99

10+
"github.com/goccy/go-yaml"
11+
1012
"github.com/choria-io/go-choria/aagent/machine"
1113
"github.com/choria-io/go-choria/aagent/plugin"
12-
"github.com/ghodss/yaml"
1314
)
1415

1516
var (

aagent/watchers/pluginswatcher/plugins_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ import (
1414
"testing"
1515
"time"
1616

17-
"github.com/choria-io/go-choria/aagent/model"
18-
iu "github.com/choria-io/go-choria/internal/util"
19-
"github.com/ghodss/yaml"
17+
"github.com/goccy/go-yaml"
2018
. "github.com/onsi/ginkgo/v2"
2119
. "github.com/onsi/gomega"
2220
"go.uber.org/mock/gomock"
21+
22+
"github.com/choria-io/go-choria/aagent/model"
23+
iu "github.com/choria-io/go-choria/internal/util"
2324
)
2425

2526
func TestMachine(t *testing.T) {

filter/facts/facts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019-2022, R.I. Pienaar and the Choria Project contributors
1+
// Copyright (c) 2019-2025, R.I. Pienaar and the Choria Project contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

@@ -13,7 +13,7 @@ import (
1313

1414
"github.com/tidwall/gjson"
1515

16-
"github.com/ghodss/yaml"
16+
"github.com/goccy/go-yaml"
1717

1818
"github.com/choria-io/go-choria/internal/util"
1919
)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ require (
2020
github.com/fatih/structtag v1.2.0
2121
github.com/freman/eventloghook v0.0.0-20250604093238-a195f2852650
2222
github.com/ghodss/yaml v1.0.0
23+
github.com/goccy/go-yaml v1.19.1
2324
github.com/gofrs/uuid v4.4.0+incompatible
2425
github.com/golang-jwt/jwt/v4 v4.5.2
2526
github.com/google/go-cmp v0.7.0
@@ -87,7 +88,6 @@ require (
8788
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
8889
github.com/gobwas/glob v0.2.3 // indirect
8990
github.com/goccy/go-json v0.10.5 // indirect
90-
github.com/goccy/go-yaml v1.19.1 // indirect
9191
github.com/google/go-tpm v0.9.8 // indirect
9292
github.com/google/pprof v0.0.0-20251213031049-b05bdaca462f // indirect
9393
github.com/google/uuid v1.6.0 // indirect

plugin/plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2018-2022, R.I. Pienaar and the Choria Project contributors
1+
// Copyright (c) 2018-2025, R.I. Pienaar and the Choria Project contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

@@ -10,9 +10,10 @@ import (
1010
"sort"
1111
"time"
1212

13+
"github.com/goccy/go-yaml"
14+
1315
"github.com/choria-io/go-choria/inter"
1416
"github.com/choria-io/go-choria/internal/fs"
15-
"github.com/ghodss/yaml"
1617
)
1718

1819
// List is a list of plugins to load

protocol/filter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017-2021, R.I. Pienaar and the Choria Project contributors
1+
// Copyright (c) 2017-2025, R.I. Pienaar and the Choria Project contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

@@ -9,7 +9,7 @@ import (
99
"os"
1010
"testing"
1111

12-
"github.com/ghodss/yaml"
12+
"github.com/goccy/go-yaml"
1313
. "github.com/onsi/ginkgo/v2"
1414
. "github.com/onsi/gomega"
1515
"github.com/sirupsen/logrus"

0 commit comments

Comments
 (0)