From 460f98acdc6b21e8d424970bf560cb16060b3002 Mon Sep 17 00:00:00 2001 From: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:31:38 -0700 Subject: [PATCH] fix: update unit tests to use pinned patch version (#2932) Signed-off-by: Christopher Phillips --- syft/pkg/cataloger/golang/cataloger_test.go | 8 ++++---- .../cataloger/golang/test-fixtures/image-small/Dockerfile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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