Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use app engine runtime go112 #34

Merged
merged 6 commits into from
Feb 6, 2020

Conversation

philips
Copy link
Collaborator

@philips philips commented Feb 5, 2020

  • Update app.yaml
  • Introduce go.mod
  • Vendor deps

Brandon Philips and others added 3 commits February 5, 2020 15:25
Make the required changes to use go112 due to the deprecation of Go 1.9.

Migration doc:
- https://cloud.google.com/appengine/docs/standard/go111/go-differences

References:
- GoogleCloudPlatform#29 (comment)
- etcd-io/maintainers#17
Migrate this project to use go.mod and update the README.

This is part of the recommended steps to runtime: go111 and beyond.
https://cloud.google.com/appengine/docs/standard/go111/go-differences
Add all dependencies for the project via vendoring for offline builds.
@philips philips mentioned this pull request Feb 5, 2020
Go 1.6 is too old to have a number of builtin packages for the latest
appengine package. Remove and update to match app engine version: 1.12.
From the go111 migration doc:
"The appengine build tag is deprecated and will not be used when
building your app for deployment.  Ensure your code still functions
correctly without it being set."

https://cloud.google.com/appengine/docs/standard/go111/go-differences
The go111 runtime should use the PORT variable to decide the listening
http port.

"PORT The port that receives HTTP requests."
https://cloud.google.com/appengine/docs/standard/go111/runtime
@@ -1,5 +1,5 @@
sudo: false
language: go
go:
- 1.6
- 1.12

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.13 might work better with modules.

@@ -0,0 +1,3 @@
# This source code refers to The Go Authors for copyright purposes.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need the vendors checked into the repo with a go.mod file.

@rakyll rakyll merged commit 26a09c4 into GoogleCloudPlatform:master Feb 6, 2020
@rakyll
Copy link
Contributor

rakyll commented Feb 6, 2020

Thanks much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants