It's still an issue using qemu-6.0.0-rc4. If you remove the environment variable ENV GOPROXY="https://proxy.golang.org|direct" you get a different error:
=> ERROR [6/6] RUN go build . 5.8s
------
> [6/6] RUN go build .:
#10 0.854 go: finding module for package rsc.io/quote
#10 4.138 fatal error: grew heap, but no adequate free space found
#10 4.159
#10 4.159 runtime stack:
#10 4.163 runtime.throw(0x62abce, 0x2b)
#10 4.172 /usr/local/go/src/runtime/panic.go:1116 +0x70
#10 4.183 runtime.(*mheap).allocSpan(0x9d5c60, 0x10000, 0x100000000000000, 0x9f1920, 0x96c720)
#10 4.199 /usr/local/go/src/runtime/mheap.go:1166 +0x896
It's still an issue using qemu-6.0.0-rc4. If you remove the environment variable ENV GOPROXY="https:/ /proxy. golang. org|direct" you get a different error:
=> ERROR [6/6] RUN go build . 5.8s throw(0x62abce, 0x2b) go/src/ runtime/ panic.go: 1116 +0x70 (*mheap) .allocSpan( 0x9d5c60, 0x10000, 0x100000000000000, 0x9f1920, 0x96c720) go/src/ runtime/ mheap.go: 1166 +0x896
------
> [6/6] RUN go build .:
#10 0.854 go: finding module for package rsc.io/quote
#10 4.138 fatal error: grew heap, but no adequate free space found
#10 4.159
#10 4.159 runtime stack:
#10 4.163 runtime.
#10 4.172 /usr/local/
#10 4.183 runtime.
#10 4.199 /usr/local/