-
Notifications
You must be signed in to change notification settings - Fork 998
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
appengine build tag is not set in new go111 runtime #334
Comments
I suspect users won't care about about the App Engine implementation details (build tags, gvisor, etc) and will just think, "I'm using App Engine, so I should use the AppEngineTokenSource". So we should make it work automatically somehow. I await guidance from @sbuss. |
Agreed; the easiest and most unsurprising way forward is to not hide AppEngineTokenSource behind the |
That's already what's happens. This issue as I understand it is about Go 1.11 on App Engine not using build tags, so they're on App Engine and trying to use AppEngineTokenSource but getting a panic/error that AppEngineTokenSource is only valid on App Engine. That seemed non-intuitive for users not knowing about Go 1.11 vs Go 1.earlier using different build systems & sandboxes. Or do I misunderstand? Does Go 1.11 on App Engine define the |
Sorry, that was my misunderstanding. @mtraver clarified to me that the actual issue is that
no
no, it sets no build tags other than what |
Is there a reasonable way to make AppEngineTokenSource work for Go 1.11? Or are the APIs it used no longer available in the gvisor sandbox? |
AppEngineTokenSource does work with Go 1.11, but the code in https://github.com/golang/oauth2/blob/ef147856a6ddbb60760db74283d2424e98c87bff/google/appengine_hook.go doesn't run because it's behind the |
App Engine just launched a new Go 1.11 runtime. The go111 runtime uses the stock Go toolchain and does not set the appengine build tag.
I encountered this when using
AppEngineTokenSource
, which panicked becauseappengine_hook.go
wasn't built. Does this code need to be behind a build tag? If someone tries to use App Engine specific features when not on App Engine failure should be expected.cc @sbuss, lead on go111 runtime
The text was updated successfully, but these errors were encountered: