Skip to content

Commit

Permalink
Remove immutable_input_digests from shell code (pantsbuild#17886)
Browse files Browse the repository at this point in the history
pantsbuild#17878 made plugin-defined immutable inputs moot, so removing plumbing.
  • Loading branch information
thejcannon authored Dec 28, 2022
1 parent 3fe07df commit 44dec86
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/python/pants/backend/shell/util_rules/shell_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class ShellCommandProcessRequest:
timeout: int | None
tools: tuple[str, ...]
input_digest: Digest
immutable_input_digests: FrozenDict[str, Digest] | None
append_only_caches: FrozenDict[str, str] | None
output_files: tuple[str, ...]
output_directories: tuple[str, ...]
Expand Down Expand Up @@ -137,7 +136,6 @@ async def _prepare_process_request_from_target(shell_command: Target) -> ShellCo
output_files=output_files,
output_directories=output_directories,
fetch_env_vars=shell_command.get(ShellCommandExtraEnvVarsField).value or (),
immutable_input_digests=None,
append_only_caches=None,
supplied_env_var_values=None,
)
Expand Down Expand Up @@ -351,7 +349,6 @@ async def run_in_sandbox_request(
timeout=None,
tools=(),
input_digest=input_digest,
immutable_input_digests=FrozenDict(run_request.immutable_input_digests or {}),
append_only_caches=FrozenDict(run_request.append_only_caches or {}),
output_files=output_files,
output_directories=output_directories,
Expand Down Expand Up @@ -432,7 +429,6 @@ async def prepare_shell_command_process(
output_directories = shell_command.output_directories
fetch_env_vars = shell_command.fetch_env_vars
supplied_env_vars = shell_command.supplied_env_var_values or FrozenDict()
immutable_input_digests = shell_command.immutable_input_digests or FrozenDict()
append_only_caches = shell_command.append_only_caches or FrozenDict()

if interactive:
Expand Down Expand Up @@ -490,7 +486,6 @@ async def prepare_shell_command_process(
timeout_seconds=timeout,
working_directory=working_directory,
append_only_caches=append_only_caches,
immutable_input_digests=immutable_input_digests,
)


Expand Down

0 comments on commit 44dec86

Please sign in to comment.