diff --git a/Dockerfile b/Dockerfile index 55fdae9b..3c396cc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.24.3 +FROM alpine:3.24.4 ARG TARGETPLATFORM COPY $TARGETPLATFORM/goss /usr/bin/ diff --git a/Dockerfile_trivy b/Dockerfile_trivy index bf27902c..88bae0a6 100644 --- a/Dockerfile_trivy +++ b/Dockerfile_trivy @@ -11,7 +11,7 @@ RUN --mount=target=. \ -o "/release/goss" \ ./cmd/goss -FROM alpine:3.24.3 +FROM alpine:3.24.4 COPY --from=base /release/* /usr/bin/ diff --git a/go.mod b/go.mod index eb9e7704..22ad0817 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,6 @@ require ( github.com/urfave/cli/v3 v3.14.0 go.yaml.in/yaml/v3 v3.0.6 golang.org/x/sys v0.50.0 - gopkg.in/yaml.v3 v3.0.1 gotest.tools/v3 v3.5.1 ) diff --git a/go.sum b/go.sum index 29b60775..44079a40 100644 --- a/go.sum +++ b/go.sum @@ -180,9 +180,5 @@ golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxb golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= diff --git a/resource/dns_test.go b/resource/dns_test.go index a52c27a2..2ccc6c66 100644 --- a/resource/dns_test.go +++ b/resource/dns_test.go @@ -7,7 +7,7 @@ import ( "github.com/goss-org/goss/system" "github.com/goss-org/goss/util" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // fakeSysDNS is a minimal system.DNS implementation used to drive NewDNS diff --git a/resource/file_test.go b/resource/file_test.go index 8c227378..05c2ac4a 100644 --- a/resource/file_test.go +++ b/resource/file_test.go @@ -7,7 +7,7 @@ import ( "github.com/goss-org/goss/system" "github.com/goss-org/goss/util" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // Contents must stay unset and marshal away: an empty list asserts nothing, so diff --git a/resource/http_test.go b/resource/http_test.go index a73b953b..a6deaa2f 100644 --- a/resource/http_test.go +++ b/resource/http_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/goss-org/goss/util" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // fakeSysHTTP is a minimal system.HTTP implementation used to drive NewHTTP diff --git a/resource/interface_test.go b/resource/interface_test.go index c90d5629..089d9396 100644 --- a/resource/interface_test.go +++ b/resource/interface_test.go @@ -7,7 +7,7 @@ import ( "github.com/goss-org/goss/system" "github.com/goss-org/goss/util" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // fakeSysInterface is a minimal system.Interface implementation used to drive diff --git a/resource/port_test.go b/resource/port_test.go index 2a8d88c9..5ac0a765 100644 --- a/resource/port_test.go +++ b/resource/port_test.go @@ -7,7 +7,7 @@ import ( "github.com/goss-org/goss/system" "github.com/goss-org/goss/util" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // fakeSysPort is a minimal system.Port implementation used to drive NewPort diff --git a/resource/retry.go b/resource/retry.go index 7c6fd9fd..f313e4f5 100644 --- a/resource/retry.go +++ b/resource/retry.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) const defaultRetryDelay = time.Second diff --git a/resource/retry_test.go b/resource/retry_test.go index e13d08b3..db480891 100644 --- a/resource/retry_test.go +++ b/resource/retry_test.go @@ -11,7 +11,7 @@ import ( "github.com/goss-org/goss/system" "github.com/goss-org/goss/util" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) type fakePackage struct { diff --git a/resource/user_test.go b/resource/user_test.go index 7ec8ddbc..aeddf5ed 100644 --- a/resource/user_test.go +++ b/resource/user_test.go @@ -7,7 +7,7 @@ import ( "github.com/goss-org/goss/system" "github.com/goss-org/goss/util" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // fakeSysUser is a minimal system.User implementation used to drive NewUser diff --git a/store.go b/store.go index 6997465d..57f46ca5 100644 --- a/store.go +++ b/store.go @@ -13,7 +13,7 @@ import ( "sync" "dario.cat/mergo" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" "github.com/goss-org/goss/resource" "github.com/goss-org/goss/util" diff --git a/util/command_windows.go b/util/command_windows.go index 01a8ad1f..22e530bf 100644 --- a/util/command_windows.go +++ b/util/command_windows.go @@ -4,9 +4,8 @@ package util import ( - "strings" - "os/exec" + "strings" "syscall" )