From 25b0b1a3daf830cde253ae1f799462b34b8e11ed Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Mon, 10 Jun 2024 00:18:17 -0400 Subject: [PATCH] remove more Signed-off-by: Jason Hall --- .golangci.yaml | 1 - internal/sbom/sbom.go | 4 ---- 2 files changed, 5 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 4c369546fa..17edd59fbe 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -27,4 +27,3 @@ linters: disable: - errcheck - depguard - - deadcode diff --git a/internal/sbom/sbom.go b/internal/sbom/sbom.go index dfb5cb98d1..53c11edc0e 100644 --- a/internal/sbom/sbom.go +++ b/internal/sbom/sbom.go @@ -29,10 +29,6 @@ func modulePackageName(mod *debug.Module) string { mod.Version) } -func bomRef(mod *debug.Module) string { - return fmt.Sprintf("pkg:golang/%s@%s?type=module", mod.Path, mod.Version) -} - func goRef(mod *debug.Module) string { path := mod.Path // Try to lowercase the first 2 path elements to comply with spec