Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd39a53c

Browse files
committed
error if big
1 parentd8768e1 commitd39a53c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎provisioner/terraform/modules.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,9 @@ func getModulesArchive(workdir string) ([]byte, error) {
153153
ifempty {
154154
return []byte{},nil
155155
}
156+
157+
ifb.Len()> (10<<20) {
158+
returnnil,xerrors.New("modules archive exceeds 10MB, modules will not be persisted")
159+
}
156160
returnb.Bytes(),nil
157161
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp