-
Notifications
You must be signed in to change notification settings - Fork 18.1k
build: breaking change in go-github #19208
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
Comments
What's the version support policy for x/build? According to #17626:
But I'm not sure if that applies directly to x/build since it's a little meta. If x/build needs to run on 1.6 and older, then vendoring version 2 of go-github (parent commit of google/go-github@796decd) would be necessary. |
I'm not sure there is one, but:
|
We can move https://dev.golang.org to https://cloud.google.com/appengine/docs/flexible/ which allows any arbitrary code, including any version of Go we want. |
The latest master for go-github (google/go-github@23d6cb9c) adds Context parameters as the first argument to every function call. Update code that calls go-github to have contexts, where appropriate, and adds timeouts to some long-running commands that didn't previously have them. Fixes golang/go#19208. Change-Id: I25203de5d10ada1dcd3a97eb5434a85bb328ce7e
CL https://golang.org/cl/37293 mentions this issue. |
Can we reopen this? I believe we can't deploy I'm working on a CL to update the |
cc @quentinmit |
Though, sigh, it sounds like "flex" is more like EC2's spot instances and less like a continuously running server. From https://cloud.google.com/appengine/docs/flexible/go/flexible-for-standard-users:
Are there any App Engine developers that contribute to the Go codebase? What are the plans for Go 1.8 on App Engine? Alternatively we could work harder to deploy dev.golang.org on Kubernetes or similar. CL https://go-review.googlesource.com/c/36319/ attempts to load the devapp's static assets outside of an App Engine context. |
I can't get this to work, though, and builds are timing out and it's frustrating and it's late. Updates golang/go#19208. Change-Id: Id3c0440a9529bf4d07a332dd301a930dc993d7f0
App Engine Classic will update to Go 1.8 soon enough. But we should migrate to Flex sooner. |
It was a tiny patch to go-github to get it to build on 1.6, so I just did that. Devapp is updated and redeployed. |
@quentinmit, is that patch public, if so, can you point me to it please? I ask because we have a PR in go-github that attempts to add compatibility for app engine, but currently isn't successful. I'm not familiar with app engine so I can't help it further. If your fix is a general one, it'd be nice to get it upstream. (If the fix isn't general, then that's fine.) |
@shurcooL, I'm guessing it was "replace all instances of |
That's my guess too, but given he said "a tiny patch", I was hoping it might be something else that I overlooked. |
I can't get this to work, though, and builds are timing out and it's frustrating and it's late. Updates golang/go#19208. Change-Id: Id3c0440a9529bf4d07a332dd301a930dc993d7f0
@shurcooL Yes, @kevinburke is correct. I sed'd the import path to |
@quentinmit Thanks for confirming.
We already have PR google/go-github#582 that does something like that, so there's no need. I just wanted to see if there was a different approach. Thanks! |
The go-github repository took the opportunity to add
context.Context
parameters to all API calls that go over the network. Several of the packages in x/build depend on go-github:CL 37293 adds Context support.
I'm not sure this is enough, however, since the new go-github can only run on 1.7 or higher, and I'm pretty sure this rules out using Google App Engine. People might also run into problems compiling the library if they have an older version of go-github (or a newer version, with an older version of x/build). We could vendor the old version in the x/build repository to maintain maximum compatibility.
The text was updated successfully, but these errors were encountered: