commit | a6ad7bffa9aafd05a5fdd1f4f39c835053b11183 | [log] [tgz] |
---|---|---|
author | Yury Smolsky <yury@smolsky.by> | Wed Jul 11 10:18:46 2018 +0300 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Wed Jul 11 14:51:49 2018 +0000 |
tree | f593f4055e6a1c5b74d969383526993a5de8f708 | |
parent | f75980871e691ebe3a13cba688254819b4a95cf7 [diff] |
playground: disable cgo when executing the vet tool Go binary installed in Docker images is not built with CGO_ENABLED=0. "go vet" was failing for the programs that imported packages with cgo files. This change disables the usage of cgo files in the vet tool. Fixes golang/go#26307. Change-Id: I0ce117a94d34b0241d48f91cb8165ab38c47cc2d Reviewed-on: https://go-review.googlesource.com/123136 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This subrepository holds the source for the Go playground: https://play.golang.org/
# build the image docker build -t playground .
docker run --name=play --rm -d -p 8080:8080 playground # run some Go code cat /path/to/code.go | go run client.go | curl -s --upload-file - localhost:8080/compile
gcloud --project=golang-org --account=person@example.com app deploy app.yaml
To submit changes to this repository, see https://golang.org/doc/contribute.html.