@@ -55,6 +55,7 @@ def get_source( # noqa: PLR0913 # Too many arguments
55
55
local_executable : Path | str | None = None ,
56
56
docker_image : bool | str | None = None ,
57
57
use_host_network : bool = False ,
58
+ host_temp_dir : Path | str | None = None ,
58
59
source_manifest : bool | dict | Path | str | None = None ,
59
60
install_if_missing : bool = True ,
60
61
install_root : Path | None = None ,
@@ -95,6 +96,9 @@ def get_source( # noqa: PLR0913 # Too many arguments
95
96
the host network. This is useful for connectors that need to access resources on
96
97
the host machine, such as a local database. This parameter is ignored when
97
98
`docker_image` is not set.
99
+ host_temp_dir: If set, along with docker_image, this replaces the volume exposing the
100
+ temporary files directory, ensuring compatibility when the Docker engine runs on a
101
+ different host (e.g., Docker in Docker), where paths may differ.
98
102
source_manifest: If set, the connector will be executed based on a declarative YAML
99
103
source definition. This input can be `True` to attempt to auto-download a YAML spec,
100
104
`dict` to accept a Python dictionary as the manifest, `Path` to pull a manifest from
@@ -116,6 +120,7 @@ def get_source( # noqa: PLR0913 # Too many arguments
116
120
local_executable = local_executable ,
117
121
docker_image = docker_image ,
118
122
use_host_network = use_host_network ,
123
+ host_temp_dir = host_temp_dir ,
119
124
source_manifest = source_manifest ,
120
125
install_if_missing = install_if_missing ,
121
126
install_root = install_root ,
0 commit comments