Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: pass files to compile to compiler in a file instead of on the command line #37768
go build bin/gameconfig/serverscript/scriptimpl/quest: /usr/local/go/pkg/tool/darwin_amd64/compile: fork/exec /usr/local/go/pkg/tool/darwin_amd64/compile: argument list too long
quest have 2510 files
$ go version go1.13.8 go1.12.7 MacOS 10.15.3
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
OSX has a limit of 256KB for a command line. I don't see any easy way to change that limit.
We could try to pass the list of files to compile in a file instead of on the command line.
If you're looking for a quick fix, maybe try making each file name shorter. Your names are at least
Try passing the
but this can compile successfully on os 10.14.3
Reproduced, unable to build matterbridge on mac 10.15.3 (19D76):
Also reproduced with