SupportsSmartDefaultEntrypoint returns true if the runtime version supports smart default entrypoint.
(ctx *gcp.Context)
| 147 | latestPythonVersionForStack, ok := latestPythonVersionPerStack[os] |
| 148 | if !ok { |
| 149 | return "", gcp.UserErrorf("invalid stack for Python runtime: %q", os) |
| 150 | } |
| 151 | |
| 152 | ctx.Logf("Python version not specified, using the latest available Python runtime for the stack %q", os) |
| 153 | return latestPythonVersionForStack, nil |
| 154 | } |
| 155 | |
| 156 | // SupportsSmartDefaultEntrypoint returns true if the runtime version supports smart default entrypoint. |
| 157 | func SupportsSmartDefaultEntrypoint(ctx *gcp.Context) (bool, error) { |
| 158 | v, err := RuntimeVersion(ctx, ctx.ApplicationRoot()) |
| 159 | if err != nil { |
| 160 | return false, err |
| 161 | } |