From deb7052f419fc91ffe71e6be862be79c9475ef84 Mon Sep 17 00:00:00 2001 From: "anchore-actions-token-generator[bot]" <102182147+anchore-actions-token-generator[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 15:41:14 +0000 Subject: [PATCH] Update syft bootstrap tools to latest versions. (#1541) * Update syft bootstrap tools to latest versions. Signed-off-by: GitHub * fix: remove ineff assign Signed-off-by: Christopher Phillips --------- Signed-off-by: GitHub Signed-off-by: Christopher Phillips Co-authored-by: spiffcs Co-authored-by: Christopher Phillips --- Makefile | 2 +- internal/file/zip_read_closer.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 71e66b8e8..e0e64da2b 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ RELEASE_CMD := $(TEMP_DIR)/goreleaser release --rm-dist SNAPSHOT_CMD := $(RELEASE_CMD) --skip-publish --skip-sign --snapshot # Tool versions ################################# -GOLANGCILINT_VERSION := v1.51.0 +GOLANGCILINT_VERSION := v1.51.1 GOSIMPORTS_VERSION := v0.3.5 BOUNCER_VERSION := v0.4.0 CHRONICLE_VERSION := v0.5.1 diff --git a/internal/file/zip_read_closer.go b/internal/file/zip_read_closer.go index 98c206d3a..5722092db 100644 --- a/internal/file/zip_read_closer.go +++ b/internal/file/zip_read_closer.go @@ -146,9 +146,7 @@ func findArchiveStartOffset(r io.ReaderAt, size int64) (startOfArchive uint64, e if err != nil { return 0, err } - startOfArchive = 0 // Prefixed data not supported } - startOfArchive = uint64(directoryEndOffset) - d.directorySize - d.directoryOffset // Make sure directoryOffset points to somewhere in our file.