blue-city-97042
08/31/2023, 5:11 PMdocker_environment(
name="python38_builder",
image="localhost/python38-builder-image:latest",
platform="linux_x86_64"
)
shell_command(
name="build_deps",
command="build-deps",
environment="python38_builder",
tools = [ "sh", "echo" ]
)
files(
name="allennlp_wheels",
sources=["**/*.whl"],
dependencies=[":build_deps"]
)
archive(
name="do_archive",
format="tar.gz",
files=[":allennlp_wheels"]
)
With the following defined in the pants.toml
[GLOBAL]
pants_version = "2.16.0"
pants_workdir = "%(buildroot)s/build/.pants.d"
pants_subprocessdir= "%(buildroot)s/build/.pids"
local_store_dir = "%(buildroot)s/build/lmdb_store"
named_caches_dir = "%(buildroot)s/build/named_caches"
backend_packages = [
"pants.backend.shell",
"pants.backend.docker"
]
[source]
root_patterns = [
"/support/*"
]
[python]
interpreter_constraints = [ "==3.8.*" ]
[environments-preview.names]
python38_builder = "//support/allen-srl-deps:python38_builder"
[anonymous-telemetry]
enabled = false
When I run pants package support/allen-srl-deps : The archive target runs before the build_deps target (which never gets run). Can someone help me understand why this would be occurring? Any help would be appreciatedenough-analyst-54434
08/31/2023, 5:19 PMshell_command target has execution_dependencies in the one direction (force things to happen before it because it needs them) and output_directories / output_files in the other direction (force things to depend on it running to produce files they use), etc. See: https://www.pantsbuild.org/docs/reference-shell_commandenough-analyst-54434
08/31/2023, 5:21 PM