fix(robots2policy): use sigs.k8s.io/yaml

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-06-13 14:40:23 -04:00
parent 00cdc52e9e
commit 332320791a
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import (
"regexp"
"strings"
"k8s.io/apimachinery/pkg/util/yaml"
"sigs.k8s.io/yaml"
)
var (
@@ -55,7 +55,7 @@ type AnubisRule struct {
func main() {
flag.Parse()
if *helpFlag || flag.Narg() == 0 {
if *helpFlag || flag.NArg() == 0 {
showHelp()
return
}

4
go.mod
View File

@@ -12,7 +12,9 @@ require (
github.com/sebest/xff v0.0.0-20210106013422-671bd2870b3a
github.com/yl2chen/cidranger v1.0.2
golang.org/x/net v0.41.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/apimachinery v0.33.1
sigs.k8s.io/yaml v1.4.0
)
require (
@@ -104,11 +106,9 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240826202546-f6391c0de4c7 // indirect
google.golang.org/protobuf v1.36.5 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
honnef.co/go/tools v0.6.1 // indirect
mvdan.cc/sh/v3 v3.11.0 // indirect
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
tool (