commit | d134d7d391d04bb6c1c7cd8abb1f3eec872c7de6 | [log] [tgz] |
---|---|---|
author | Katie Hockman <katie@golang.org> | Tue Oct 23 18:12:08 2018 -0400 |
committer | Katie Hockman <katie@golang.org> | Fri Oct 26 21:26:38 2018 +0000 |
tree | 8072c72b4995818ae549b5d80f6d5ef42492116b | |
parent | cadbb20a62ad01569ee6c04707c5c92fb76db3ad [diff] |
playground: prevent caching memory-related compile time errors It is important that nondeterministic errors are not cached. Otherwise, playground users may encounter errors from a prevous run when the current run may have otherwise succeeded. The existing implementation prevents runtime OOM errors from being cached. This change prevents compile time OOM errors from being cached as well. See related: https://golang.org/cl/130035 Fixes golang/go#28283 Change-Id: If734915935cc1013bcb9a87d0ae6ecd67505f231 Reviewed-on: https://go-review.googlesource.com/c/144297 Reviewed-by: Dmitri Shuralyov <dmitshur@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.