From 176377bf9e2a0ed29735610fc4498d874da2979c Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Sun, 26 May 2024 15:27:25 +0000 Subject: [PATCH] Cleanup --- pkg/leeway/provenance.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/leeway/provenance.go b/pkg/leeway/provenance.go index bb661e1..9af1c09 100644 --- a/pkg/leeway/provenance.go +++ b/pkg/leeway/provenance.go @@ -13,7 +13,6 @@ import ( "io/fs" "os" "path/filepath" - "strconv" "strings" "time" @@ -42,22 +41,6 @@ const ( ProvenanceBuilderID = "github.com/gitpod-io/leeway" ) -var ( - // maxBundleEntrySize is the maximum size in bytes an attestation bundle entry may have. - // If we encounter a bundle entry lager than this size, the build will fail. - // Note: we'll allocate multiple buffers if this size, i.e. this size directly impacts - // the amount of memory required during a build (parralellBuildCount * maxBundleEntrySize). - maxBundleEntrySize = func() int { - env := os.Getenv("LEEWAY_MAX_PROVENANCE_BUNDLE_SIZE") - res, err := strconv.ParseInt(env, 10, 64) - if err != nil { - return 2 * 1024 * 1024 - } - - return int(res) - }() -) - // writeProvenance produces a provenanceWriter which ought to be used during package builds func writeProvenance(p *Package, buildctx *buildContext, builddir string, subjects []in_toto.Subject, buildStarted time.Time) (err error) { if !p.C.W.Provenance.Enabled {