Verify running in Standard AppEngine, not Flex
When someone tries to run this project in Flex, it gives very weird error messages. I'm thinking an easy fix is to confirm IsStandard() when appengine.Main() is called or fmt.Fatalf() right away? (but I don't really know)
Yes, you should be able to just call IsStandard() (or, conversely, IsFlex(), to determine if you're in a Flex environment).
Would a PR to add the check to this project be accepted?
What are the weird error messages? I'd rather fix those than add a check that has implications on whether a program crashes or not.
On Tue, Nov 26, 2019, 12:01 AM coryrc [email protected] wrote:
Would a PR to add the check to this project be accepted?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/golang/appengine/issues/220?email_source=notifications&email_token=AAAGDFTMO6LYQLMHCGXPR63QVSURJA5CNFSM4JEMUNB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFEW74A#issuecomment-558460912, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGDFRSEO6ZKUKC5CHTSLTQVSURJANCNFSM4JEMUNBQ .
The error found in the application logs is:
2019/06/13
Which is wildly confusing. Given the library used to support Flex and no longer does, I think verification is good because it just can't work.