embed: document 2GB max file size ("file too large") #47627
Labels
Documentation
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, this is the latest release
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
dd if=/dev/zero of=2001M bs=1MB count=2001
What did you expect to see?
Successful build
What did you see instead?
Build error:
A 1999 MB (again, not MiB) file gets embedded without issue.
I think the cause is here: https://github.com/golang/go/blob/master/src/cmd/compile/internal/staticdata/data.go#L136-L142
Maybe it is unreasonable to embed 2 GB files, but if it is so, I think this size limit should be documented in the embed doc.
The text was updated successfully, but these errors were encountered: