Skip to content

Commit 176377b

Browse files
aledbfcsweichel
authored andcommitted
Cleanup
1 parent 9e23bed commit 176377b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pkg/leeway/provenance.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"io/fs"
1414
"os"
1515
"path/filepath"
16-
"strconv"
1716
"strings"
1817
"time"
1918

@@ -42,22 +41,6 @@ const (
4241
ProvenanceBuilderID = "github.com/gitpod-io/leeway"
4342
)
4443

45-
var (
46-
// maxBundleEntrySize is the maximum size in bytes an attestation bundle entry may have.
47-
// If we encounter a bundle entry lager than this size, the build will fail.
48-
// Note: we'll allocate multiple buffers if this size, i.e. this size directly impacts
49-
// the amount of memory required during a build (parralellBuildCount * maxBundleEntrySize).
50-
maxBundleEntrySize = func() int {
51-
env := os.Getenv("LEEWAY_MAX_PROVENANCE_BUNDLE_SIZE")
52-
res, err := strconv.ParseInt(env, 10, 64)
53-
if err != nil {
54-
return 2 * 1024 * 1024
55-
}
56-
57-
return int(res)
58-
}()
59-
)
60-
6144
// writeProvenance produces a provenanceWriter which ought to be used during package builds
6245
func writeProvenance(p *Package, buildctx *buildContext, builddir string, subjects []in_toto.Subject, buildStarted time.Time) (err error) {
6346
if !p.C.W.Provenance.Enabled {

0 commit comments

Comments
 (0)