# We always build for a foreign GOOS.
# GOOS=windows, unless the host is also windows; then linux.
# GOARCH=arm, unless the host is also arm; then amd64.
# Windows and ARM are both interesting,
# and it helps with coverage as we mainly test on linux/amd64.
[!windows] env GOOS=windows
[windows] env GOOS=linux
[!arm] env GOARCH=arm
[arm] env GOARCH=arm64

env GOPRIVATE='*'

# Link a binary importing net/http, which will catch whether or not we
# support ImportMap when linking.
garble build

-- go.mod --
module test/main

go 1.16
-- main.go --
package main

import "net/http"

func main() {
	http.ListenAndServe("", nil)
}
