Skip to content

Commit

Permalink
Run Python 'compileall' with '-f' flag to ignore timestamps
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 326130572
Change-Id: I1dff5831ab602e6d697eacff75d485edb993e90d
  • Loading branch information
Arjun Srinivasan authored and Copybara-Service committed Aug 11, 2020
1 parent 941c0ab commit 096e899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/python/functions_framework/main.go
Expand Up @@ -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
Expand Down

0 comments on commit 096e899

Please sign in to comment.