gentle-flower-25372
03/07/2024, 10:06 PM$ pants package apps/app1:docker
22:05:53.95 [ERROR] 1 Exception encountered:
Engine traceback:
in `package` goal
ValueError: Could not find a binary with name `pulumi` with output matching `^v3\.` when run with arguments `version`. The following paths were searched: /usr/bin, /bin, /usr/local/bin, /opt/homebrew/bin.
$ /usr/local/bin/pulumi version
v3.108.1
broad-processor-92400
03/07/2024, 10:08 PMBUILD
file(s) you're working with?gentle-flower-25372
03/07/2024, 10:08 PMsystem_binary(
name="pulumi",
binary_name="pulumi",
fingerprint=r"^v3\.",
fingerprint_args=["version"],
)
gentle-flower-25372
03/07/2024, 10:09 PM/usr/local/bin
diff --git i/apps/app1/BUILD.pants w/apps/app1/BUILD.pants
index 8356b9bb20..33de01d8bb 100644
--- i/apps/app1/BUILD.pants
+++ w/apps/app1/BUILD.pants
@@ -84,6 +84,7 @@ pex_binary(
system_binary(
name="pulumi",
binary_name="pulumi",
+ extra_search_paths=["/usr/local/bin"],
fingerprint=r"^v3\.",
fingerprint_args=["version"],
)
broad-processor-92400
03/07/2024, 10:09 PMgentle-flower-25372
03/07/2024, 10:11 PMgentle-flower-25372
03/07/2024, 11:14 PMhappy-kitchen-89482
03/07/2024, 11:39 PMhappy-kitchen-89482
03/07/2024, 11:40 PMsystem_binary
? It's true that we expand <PATH>
in various path-related options, but I'm not sure about target fields like extra_search_paths
gentle-flower-25372
03/07/2024, 11:42 PMhappy-kitchen-89482
03/07/2024, 11:54 PMhappy-kitchen-89482
03/07/2024, 11:54 PMhappy-kitchen-89482
03/07/2024, 11:54 PM/usr/local/bin
is in the defaults anywayhappy-kitchen-89482
03/07/2024, 11:54 PMhappy-kitchen-89482
03/07/2024, 11:55 PM^v3\.
with an empty string, temporarilyhappy-kitchen-89482
03/07/2024, 11:55 PMgentle-flower-25372
03/07/2024, 11:56 PMgentle-flower-25372
03/07/2024, 11:57 PMgentle-flower-25372
03/07/2024, 11:58 PMgentle-flower-25372
03/07/2024, 11:58 PMgentle-flower-25372
03/08/2024, 12:03 AMgentle-flower-25372
03/08/2024, 12:04 AMgit clean -fdx
and rm -rf ~/.cache/pants
-- it workedhappy-kitchen-89482
03/08/2024, 12:08 AMhappy-kitchen-89482
03/08/2024, 12:09 AMhappy-kitchen-89482
03/08/2024, 12:09 AM^v3\.
match?happy-kitchen-89482
03/08/2024, 12:56 AMgentle-flower-25372
03/08/2024, 1:02 AMgentle-flower-25372
03/08/2024, 1:08 AMgentle-flower-25372
03/08/2024, 1:09 AMhappy-kitchen-89482
03/08/2024, 1:11 AMhappy-kitchen-89482
03/08/2024, 1:11 AMps -ef | grep pantsd
to find the binary pid and kill it)happy-kitchen-89482
03/08/2024, 1:12 AMgentle-flower-25372
03/08/2024, 1:20 AMbroad-processor-92400
03/08/2024, 2:45 AMhappy-kitchen-89482
03/08/2024, 3:03 AMbroad-processor-92400
03/08/2024, 6:36 AM# NB: Since a failure is a valid result for this script, we always cache it,
# regardless of success or failure.
cache_scope=env_target.executable_search_path_cache_scope(cache_failures=True),
The environment changing seems to be discussed in executable_search_path_cache_scope
, and it looks like it's cached per-pantsd for local invocations.gentle-flower-25372
03/08/2024, 1:34 PMcurved-manchester-66006
03/08/2024, 2:54 PMhappy-kitchen-89482
03/08/2024, 7:16 PM