Compare commits

...

5 Commits

Author SHA1 Message Date
james-prysm
f33d6919a7 Merge branch 'develop' into remove-direct-apimachinery 2025-12-15 13:47:04 -08:00
james-prysm
6cb917b329 yamlv3 didn't work switching to another library 2025-09-22 09:58:59 -05:00
james-prysm
2a334c7f31 Merge branch 'develop' into remove-direct-apimachinery 2025-09-22 09:40:24 -05:00
james-prysm
a3e0e8f4d2 using yamlv3 broke tests, switching to a different library 2025-09-22 09:39:52 -05:00
james-prysm
ca5c436d51 removing direct dependency, we can just use yamlv3 2025-09-22 09:29:51 -05:00
5 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
### Removed
- removed direct dependency of k8s.io/apimachinery introduced in https://github.com/OffchainLabs/prysm/pull/12354

View File

@@ -21,9 +21,9 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"@com_github_ethereum_go_ethereum//common:go_default_library",
"@com_github_ghodss_yaml//:go_default_library",
"@com_github_pkg_errors//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@io_k8s_apimachinery//pkg/util/yaml:go_default_library",
],
)

View File

@@ -11,9 +11,10 @@ import (
"path/filepath"
"github.com/ethereum/go-ethereum/common"
"github.com/ghodss/yaml"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/util/yaml"
)
func UnmarshalFromURL(ctx context.Context, from string, to any) error {

View File

@@ -17,6 +17,6 @@ go_test(
embed = [":go_default_library"],
deps = [
"//testing/require:go_default_library",
"@io_k8s_apimachinery//pkg/util/yaml:go_default_library",
"@com_github_ghodss_yaml//:go_default_library",
],
)

2
go.mod
View File

@@ -99,7 +99,6 @@ require (
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
honnef.co/go/tools v0.6.0
k8s.io/apimachinery v0.30.4
k8s.io/client-go v0.30.4
)
@@ -274,6 +273,7 @@ require (
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
k8s.io/apimachinery v0.30.4 // indirect
lukechampine.com/blake3 v1.3.0 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect