From 096e8993a32267e3ea3e017ba89dc8e2204dd66b Mon Sep 17 00:00:00 2001 From: Arjun Srinivasan Date: Tue, 11 Aug 2020 16:55:15 -0700 Subject: [PATCH] Run Python 'compileall' with '-f' flag to ignore timestamps PiperOrigin-RevId: 326130572 Change-Id: I1dff5831ab602e6d697eacff75d485edb993e90d --- cmd/python/functions_framework/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/python/functions_framework/main.go b/cmd/python/functions_framework/main.go index 0ece2e40e..a3cb51c42 100644 --- a/cmd/python/functions_framework/main.go +++ b/cmd/python/functions_framework/main.go @@ -57,7 +57,7 @@ func buildFn(ctx *gcp.Context) error { } // Check for syntax errors. - ctx.Exec([]string{"python3", "-m", "compileall", "-q", "."}, gcp.WithStdoutTail, gcp.WithUserAttribution) + ctx.Exec([]string{"python3", "-m", "compileall", "-f", "-q", "."}, gcp.WithStdoutTail, gcp.WithUserAttribution) // Determine if the function has dependency on functions-framework. hasFrameworkDependency := false