diff --git a/go.mod b/go.mod index 53938da..0f4273b 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/sapcc/go-makefile-maker go 1.22 require ( - github.com/sapcc/go-bits v0.0.0-20240314001344-7f456a38d82a + github.com/sapcc/go-bits v0.0.0-20240321130422-af7405f5e67d golang.org/x/mod v0.16.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 07508d4..eefe3e0 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -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/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= golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic= golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= diff --git a/vendor/github.com/sapcc/go-bits/logg/log.go b/vendor/github.com/sapcc/go-bits/logg/log.go index 88edd28..b095f23 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/modules.txt b/vendor/modules.txt index 16496dd..dff026f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,4 +1,4 @@ -# 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/must