diff --git a/syft/pkg/cataloger/golang/cataloger_test.go b/syft/pkg/cataloger/golang/cataloger_test.go index ed8296565b4..0e15266586a 100644 --- a/syft/pkg/cataloger/golang/cataloger_test.go +++ b/syft/pkg/cataloger/golang/cataloger_test.go @@ -31,7 +31,7 @@ func Test_PackageCataloger_Binary(t *testing.T) { "github.com/pierrec/lz4/v4 @ v4.1.2 (/run-me)", "github.com/ulikunitz/xz @ v0.5.9 (/run-me)", "github.com/xi2/xz @ v0.0.0-20171230120015-48954b6210f8 (/run-me)", - "stdlib @ go1.22.3 (/run-me)", + "stdlib @ go1.22.4 (/run-me)", }, expectedRels: []string{ "github.com/andybalholm/brotli @ v1.0.1 (/run-me) [dependency-of] anchore.io/not/real @ (devel) (/run-me)", @@ -44,7 +44,7 @@ func Test_PackageCataloger_Binary(t *testing.T) { "github.com/pierrec/lz4/v4 @ v4.1.2 (/run-me) [dependency-of] anchore.io/not/real @ (devel) (/run-me)", "github.com/ulikunitz/xz @ v0.5.9 (/run-me) [dependency-of] anchore.io/not/real @ (devel) (/run-me)", "github.com/xi2/xz @ v0.0.0-20171230120015-48954b6210f8 (/run-me) [dependency-of] anchore.io/not/real @ (devel) (/run-me)", - "stdlib @ go1.22.3 (/run-me) [dependency-of] anchore.io/not/real @ (devel) (/run-me)", + "stdlib @ go1.22.4 (/run-me) [dependency-of] anchore.io/not/real @ (devel) (/run-me)", }, }, { @@ -64,7 +64,7 @@ func Test_PackageCataloger_Binary(t *testing.T) { "github.com/pierrec/lz4/v4 @ v4.1.2 (/run-me)", "github.com/ulikunitz/xz @ v0.5.9 (/run-me)", "github.com/xi2/xz @ v0.0.0-20171230120015-48954b6210f8 (/run-me)", - "stdlib @ go1.22.3 (/run-me)", + "stdlib @ go1.22.4 (/run-me)", }, expectedRels: []string{ "github.com/andybalholm/brotli @ v1.0.1 (/run-me) [dependency-of] command-line-arguments @ (devel) (/run-me)", @@ -77,7 +77,7 @@ func Test_PackageCataloger_Binary(t *testing.T) { "github.com/pierrec/lz4/v4 @ v4.1.2 (/run-me) [dependency-of] command-line-arguments @ (devel) (/run-me)", "github.com/ulikunitz/xz @ v0.5.9 (/run-me) [dependency-of] command-line-arguments @ (devel) (/run-me)", "github.com/xi2/xz @ v0.0.0-20171230120015-48954b6210f8 (/run-me) [dependency-of] command-line-arguments @ (devel) (/run-me)", - "stdlib @ go1.22.3 (/run-me) [dependency-of] command-line-arguments @ (devel) (/run-me)", + "stdlib @ go1.22.4 (/run-me) [dependency-of] command-line-arguments @ (devel) (/run-me)", }, }, } diff --git a/syft/pkg/cataloger/golang/test-fixtures/image-small/Dockerfile b/syft/pkg/cataloger/golang/test-fixtures/image-small/Dockerfile index cf78c974bbd..be8d9378094 100644 --- a/syft/pkg/cataloger/golang/test-fixtures/image-small/Dockerfile +++ b/syft/pkg/cataloger/golang/test-fixtures/image-small/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 golang:1.22 AS builder +FROM --platform=linux/amd64 golang:1.22.4 AS builder RUN mkdir /app WORKDIR /app