Skip to content

Commit

Permalink
cmd/go/internal/modfetch/codehost: raise maximum repo size limit
Browse files Browse the repository at this point in the history
This limit applies not just to the compressed zip file but also
to the total of the uncompressed contents.

github.com/Azure/azure-sdk-for-go has 116,335,208 bytes
of Go source files today. That exceeds the previous limit of
100 MB (104,857,600 bytes). Raise the limit.

For Azure/azure-sdk-for-go#1969.

Change-Id: Ibcc3b7b3fe375e2e17cc16210542b1d06293ba08
Reviewed-on: https://go-review.googlesource.com/116355
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
  • Loading branch information
rsc committed Jun 5, 2018
1 parent 6b832b2 commit 0cf06bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/cmd/go/internal/modfetch/codehost/codehost.go
Expand Up @@ -24,7 +24,7 @@ import (
const (
MaxGoMod = 16 << 20 // maximum size of go.mod file
MaxLICENSE = 16 << 20 // maximum size of LICENSE file
MaxZipFile = 100 << 20 // maximum size of downloaded zip file
MaxZipFile = 500 << 20 // maximum size of downloaded zip file
)

// A Repo represents a code hosting source.
Expand Down

0 comments on commit 0cf06bb

Please sign in to comment.