1DOLLY 82PACKAGE go3REQUIRES HOST runtime@04# go downloads modules with net/http, which records http@0.5REQUIRES HOST http@067# Go as Dolly builds it, in its GOROOT: the seed's go command compiles the8# toolchain and the standard library from the GOROOT's sources, every package9# (-a), with the flags of upstream's release build (cmd/dist's toolenv), and10# installs it over the seed's. Its commands are the next seed11# (demos/go/pin-seed.mjs). The commands start it by its own path, from which12# it finds its GOROOT.13FROM /demos/go/Dollyfile-go-sdk 40f683ca599ad142499124723f85e58f48f3474448f56837e234468a6a2ce6d914REQUIRES TOOL go15# Two compiles at a time, each held near 2 GiB: compiling cmd/compile/internal/ssa16# can grow a process to 3.9 GiB with the default collector (1.8 GB natively).17# A spawn waits for a slot beside at most one compile, so the processes stay18# under the 4 GiB a spawn is admitted below, and the build in its 6 GB.19SLOP CWD /usr/lib/go/src CGO_ENABLED=0 GOCACHE=/tmp/go-cache GOMEMLIMIT=2GiB GOFLAGS='-trimpath -ldflags=-w -gcflags=cmd/...=-dwarf=false' go install -a -p 2 cmd/go cmd/gofmt cmd/asm cmd/cgo cmd/compile cmd/cover cmd/fix cmd/link cmd/preprofile cmd/vet20SLOP go version212223FILE /usr/bin/go24    #!/bin/slop25    /usr/lib/go/bin/go "$@"26FILE /usr/bin/gofmt27    #!/bin/slop28    /usr/lib/go/bin/gofmt "$@"29EXPORTS TOOL go30EXPORTS TOOL gofmt31# go.env's GOTOOLCHAIN=auto would fetch newer toolchains, which do not run here.32EXPORTS ENV GOTOOLCHAIN local33# runtime.NumCPU is 1, so go would compile one package at a time; four halve34# the time of a small module's first build.35EXPORTS ENV GOFLAGS -p=436EXPORTS FOLDER go-root /usr/lib/go37FILE /usr/share/man/cat1/go.138    go: the Go toolchain (Go 1.27.3) for GOOS=dolly GOARCH=wasm64, built inside39    Dolly from its pinned sources.40    41      go build              compiles a package and its dependencies42      go run main.go        compiles and runs a program43      gofmt -l .            lists files whose formatting differs44    45    Programs are pure Go: there is no cgo, and they run single-threaded.46    go builds four packages at a time (GOFLAGS=-p=4).47    net/http goes through the page's HTTP broker (its policy, and CORS), so48    go get works with proxy.golang.org; net's sockets reach nothing.49    signal.Notify receives the kernel's signals; syscall.Exec replaces the50    program. Upstream's documentation: https://go.dev/doc/51