|
17 | 17 | from typing import Callable |
18 | 18 | from typing import List |
19 | 19 | from typing import Optional |
| 20 | +from typing import Tuple |
20 | 21 | from typing import TYPE_CHECKING |
21 | 22 | from typing import Union |
22 | 23 |
|
@@ -182,7 +183,7 @@ def __gt__(self, other: Any) -> bool: |
182 | 183 | @dataclass(frozen=True) |
183 | 184 | class _OciRuntimeBase: |
184 | 185 | #: command that builds the Dockerfile in the current working directory |
185 | | - build_command: List[str] = field(default_factory=list) |
| 186 | + build_command: Tuple[str, ...] = field(default_factory=tuple) |
186 | 187 | #: the "main" binary of this runtime, e.g. podman or docker |
187 | 188 | runner_binary: str = "" |
188 | 189 | _runtime_functional: bool = False |
@@ -468,9 +469,9 @@ def _runtime_error_message() -> str: |
468 | 469 | def __init__(self) -> None: |
469 | 470 | super().__init__( |
470 | 471 | build_command=( |
471 | | - ["buildah", "bud", "--layers", "--force-rm"] |
| 472 | + ("buildah", "bud", "--layers", "--force-rm") |
472 | 473 | if self._buildah_functional |
473 | | - else ["podman", "build", "--layers", "--force-rm"] |
| 474 | + else ("podman", "build", "--layers", "--force-rm") |
474 | 475 | ), |
475 | 476 | runner_binary="podman", |
476 | 477 | _runtime_functional=self._runtime_functional, |
@@ -571,7 +572,7 @@ def _runtime_error_message() -> str: |
571 | 572 |
|
572 | 573 | def __init__(self) -> None: |
573 | 574 | super().__init__( |
574 | | - build_command=["docker", "build", "--force-rm"], |
| 575 | + build_command=("docker", "build", "--force-rm"), |
575 | 576 | runner_binary="docker", |
576 | 577 | _runtime_functional=self._runtime_functional, |
577 | 578 | ) |
|
0 commit comments