We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c817fb4 commit 3778377Copy full SHA for 3778377
synthtool/gcp/common.py
@@ -266,9 +266,11 @@ def py_library(self, **kwargs) -> Path:
266
if Path("google/cloud").exists():
267
kwargs["is_google_cloud_api"] = True
268
269
- # Assume the python-docs-samples Dockerfile is used for samples by default
270
- if "custom_samples_dockerfile" not in kwargs:
271
- kwargs["custom_samples_dockerfile"] = False
+ # If Dockerfile exists in .kokoro/docker/samples, add kwargs to
+ # signal that a custom docker image should be used when testing samples.
+ kwargs["custom_samples_dockerfile"] = Path(
272
+ ".kokoro/docker/samples/Dockerfile"
273
+ ).exists()
274
275
ret = self._generic_library("python_library", **kwargs)
276
0 commit comments