diff --git a/go.mod b/go.mod index 3d21586e..88b5d059 100644 --- a/go.mod +++ b/go.mod @@ -7,8 +7,8 @@ require ( github.com/gophercloud/utils v0.0.0-20231010081019-80377eca5d56 github.com/olekukonko/tablewriter v0.0.5 github.com/sapcc/go-api-declarations v1.10.9 - github.com/sapcc/go-bits v0.0.0-20240314001344-7f456a38d82a - github.com/sapcc/gophercloud-sapcc v0.0.0-20240314082754-a1ca380bc0d2 + github.com/sapcc/go-bits v0.0.0-20240321130422-af7405f5e67d + github.com/sapcc/gophercloud-sapcc v0.0.0-20240321130357-022151c85de7 github.com/spf13/cobra v1.8.0 ) diff --git a/go.sum b/go.sum index d7ae4e7b..f3df9732 100644 --- a/go.sum +++ b/go.sum @@ -17,10 +17,10 @@ github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sapcc/go-api-declarations v1.10.9 h1:k+F3W0FTyYLazII4hdFaWLJ7L+MQRcFBD9I9P/hUNBs= github.com/sapcc/go-api-declarations v1.10.9/go.mod h1:83R3hTANhuRXt/pXDby37IJetw8l7DG41s33Tp9NXxI= -github.com/sapcc/go-bits v0.0.0-20240314001344-7f456a38d82a h1:GzUSt4J0CUe2V+mLn5tKUl+/3d7Fp+3vDRlAkoN6qcE= -github.com/sapcc/go-bits v0.0.0-20240314001344-7f456a38d82a/go.mod h1:x+3zq1uoBe4pnCLvBvlAZLuZOdz8ImGS97YG/B7d3wE= -github.com/sapcc/gophercloud-sapcc v0.0.0-20240314082754-a1ca380bc0d2 h1:Bad9jjsdI6f9Oqcc5UG3JcIRMLjazpcc0WMhYa7JWms= -github.com/sapcc/gophercloud-sapcc v0.0.0-20240314082754-a1ca380bc0d2/go.mod h1:K8Uv1z4lNr9X67kv2AmnWr0AbmaGE4OqXqE5OldhceQ= +github.com/sapcc/go-bits v0.0.0-20240321130422-af7405f5e67d h1:dwbfHnUNSep0RLJL86dkuY/4JSZGMedqG1CzVWWuMZc= +github.com/sapcc/go-bits v0.0.0-20240321130422-af7405f5e67d/go.mod h1:9AD0qbmtyVApQezhUx7pUuExUcl2kSjB/WSMcPGo6f8= +github.com/sapcc/gophercloud-sapcc v0.0.0-20240321130357-022151c85de7 h1:/T5esVG9Kl8XKGXNRv979KyFp0QBgI1+lcmsI51Noa8= +github.com/sapcc/gophercloud-sapcc v0.0.0-20240321130357-022151c85de7/go.mod h1:5iZ8EUojZr6G/fpZQzfxSIGn63D9bv4311YSW+tEEA0= github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= diff --git a/vendor/github.com/sapcc/go-bits/logg/log.go b/vendor/github.com/sapcc/go-bits/logg/log.go index 88edd281..b095f232 100644 --- a/vendor/github.com/sapcc/go-bits/logg/log.go +++ b/vendor/github.com/sapcc/go-bits/logg/log.go @@ -45,7 +45,7 @@ import ( ) var ( - //ShowDebug can be set to true to enable the display of debug logs. + // ShowDebug can be set to true to enable the display of debug logs. ShowDebug = false log = stdlog.New(stdlog.Writer(), stdlog.Prefix(), stdlog.Flags()) mu sync.Mutex @@ -87,8 +87,8 @@ func Other(level, msg string, args ...any) { } func doLog(msg string, args []any) { - msg = strings.TrimSpace(msg) //most importantly, skip trailing '\n' - msg = strings.Replace(msg, "\n", "\\n", -1) //avoid multiline log messages + msg = strings.TrimSpace(msg) // most importantly, skip trailing '\n' + msg = strings.ReplaceAll(msg, "\n", "\\n") // avoid multiline log messages if len(args) > 0 { log.Printf(msg+"\n", args...) } else { diff --git a/vendor/github.com/sapcc/go-bits/secrets/secrets.go b/vendor/github.com/sapcc/go-bits/secrets/secrets.go index b404e6ed..5486a25b 100644 --- a/vendor/github.com/sapcc/go-bits/secrets/secrets.go +++ b/vendor/github.com/sapcc/go-bits/secrets/secrets.go @@ -32,7 +32,7 @@ type FromEnv string // UnmarshalYAML implements the yaml.Unmarshaler interface. func (p *FromEnv) UnmarshalYAML(unmarshal func(any) error) error { - //plain text value + // plain text value var plainTextInput string err := unmarshal(&plainTextInput) if err == nil { @@ -40,7 +40,7 @@ func (p *FromEnv) UnmarshalYAML(unmarshal func(any) error) error { return nil } - //retrieve value from the given environment variable key + // retrieve value from the given environment variable key var envVariableInput struct { Key string `yaml:"fromEnv"` } diff --git a/vendor/modules.txt b/vendor/modules.txt index 64a8aaa5..912d64f9 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -41,12 +41,12 @@ github.com/sapcc/go-api-declarations/internal/marshal github.com/sapcc/go-api-declarations/limes github.com/sapcc/go-api-declarations/limes/rates github.com/sapcc/go-api-declarations/limes/resources -# github.com/sapcc/go-bits v0.0.0-20240314001344-7f456a38d82a +# github.com/sapcc/go-bits v0.0.0-20240321130422-af7405f5e67d ## explicit; go 1.21 github.com/sapcc/go-bits/logg github.com/sapcc/go-bits/osext github.com/sapcc/go-bits/secrets -# github.com/sapcc/gophercloud-sapcc v0.0.0-20240314082754-a1ca380bc0d2 +# github.com/sapcc/gophercloud-sapcc v0.0.0-20240321130357-022151c85de7 ## explicit; go 1.21 github.com/sapcc/gophercloud-sapcc/clients github.com/sapcc/gophercloud-sapcc/rates/v1/clusters