[tor-commits] [snowflake/master] Update appengine for the Go 1.11 runtime.

dcf at torproject.org dcf at torproject.org
Mon Feb 24 07:18:14 UTC 2020


commit c2a12c25d1dd740b055aff736379a4a0c45b51d6
Author: David Fifield <david at bamsoftware.com>
Date:   Mon Feb 24 00:15:54 2020 -0700

    Update appengine for the Go 1.11 runtime.
    
    https://cloud.google.com/appengine/docs/standard/go111/go-differences
    This is untested, because I wasn't actually able to deploy without
    enabling Cloud Build and setting up a billing account.
---
 appengine/.gcloudignore | 25 +++++++++++++++++++++++++
 appengine/app.yaml      |  5 ++---
 appengine/reflect.go    |  2 +-
 3 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/appengine/.gcloudignore b/appengine/.gcloudignore
new file mode 100644
index 0000000..199e6d9
--- /dev/null
+++ b/appengine/.gcloudignore
@@ -0,0 +1,25 @@
+# This file specifies files that are *not* uploaded to Google Cloud Platform
+# using gcloud. It follows the same syntax as .gitignore, with the addition of
+# "#!include" directives (which insert the entries of the given .gitignore-style
+# file at that point).
+#
+# For more information, run:
+#   $ gcloud topic gcloudignore
+#
+.gcloudignore
+# If you would like to upload your .git directory, .gitignore file or files
+# from your .gitignore file, remove the corresponding line
+# below:
+.git
+.gitignore
+
+# Binaries for programs and plugins
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+# Test binary, build with `go test -c`
+*.test
+# Output of the go coverage tool, specifically when used with LiteIDE
+*.out
\ No newline at end of file
diff --git a/appengine/app.yaml b/appengine/app.yaml
index 44df436..5d0dcf0 100644
--- a/appengine/app.yaml
+++ b/appengine/app.yaml
@@ -1,7 +1,6 @@
-runtime: go
-api_version: go1
+runtime: go111
 
 handlers:
 - url: /.*
-  script: _go_app
   secure: always
+  script: auto
diff --git a/appengine/reflect.go b/appengine/reflect.go
index 58d8a67..e09c09e 100644
--- a/appengine/reflect.go
+++ b/appengine/reflect.go
@@ -1,6 +1,6 @@
 // A web app for Google App Engine that proxies HTTP requests and responses to
 // the Snowflake broker.
-package reflect
+package main
 
 import (
 	"context"



More information about the tor-commits mailing list