This is an automated email from the ASF dual-hosted git repository.

heejong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 98b8384  Fix google3 import error
     new 6a06352  Merge pull request #16635 from ihji/fix_google3_import
98b8384 is described below

commit 98b83845c1c017396acd488007718209db31be07
Author: Heejong Lee <[email protected]>
AuthorDate: Thu Jan 27 11:25:45 2022 -0800

    Fix google3 import error
---
 runners/google-cloud-dataflow-java/build.gradle | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/runners/google-cloud-dataflow-java/build.gradle 
b/runners/google-cloud-dataflow-java/build.gradle
index 891ea3d..cd7ea7f 100644
--- a/runners/google-cloud-dataflow-java/build.gradle
+++ b/runners/google-cloud-dataflow-java/build.gradle
@@ -300,6 +300,10 @@ task cleanUpDockerJavaImages() {
 // task directly ('dependsOn buildAndPushDockerPythonContainer'). This ensures 
the correct
 // task ordering such that the registry doesn't get cleaned up prior to task 
completion.
 task buildAndPushDockerPythonContainer() {
+  if (!project.project(":sdks:python").buildFile.exists()) {
+    System.err.println 'Python build file not found. Skipping 
buildAndPushDockerPythonContainer task.'
+    return
+  }
   project.evaluationDependsOn(":sdks:python")
   def pythonVer = project.project(':sdks:python').pythonVersion
   dependsOn ":sdks:python:container:py"+pythonVer.replace('.', '')+":docker"

Reply via email to