hundreds-father-404
09/07/2022, 8:13 PMwitty-crayon-22786
09/07/2022, 8:22 PM@rule
is installed in all cases where the intrinsic is also installed.witty-crayon-22786
09/07/2022, 8:24 PMhundreds-father-404
09/07/2022, 8:24 PMwitty-crayon-22786
09/07/2022, 8:25 PMsrc/python/pants/backend/explorer/browser.py
53: QueryRule(ProcessResult, (Process,)),
?hundreds-father-404
09/07/2022, 8:25 PMwitty-crayon-22786
09/07/2022, 8:26 PMhundreds-father-404
09/07/2022, 8:27 PMwitty-crayon-22786
09/07/2022, 8:29 PMhundreds-father-404
09/07/2022, 8:29 PM*environments.rules()
inside engine_initializer.py
. I will try my approach of checking for rule graph cycles while you look: comment out Gets
until it's as simple as possiblewitty-crayon-22786
09/07/2022, 8:32 PM-ltrace --no-pantsd
, which will render a dot graph of the errorwitty-crayon-22786
09/07/2022, 8:33 PMwitty-crayon-22786
09/07/2022, 8:33 PMQuery(MaybeGitWorktree for (GitBinary, GitWorktreeRequest))
Query(GitBinary for GitBinaryRequest)
witty-crayon-22786
09/07/2022, 8:34 PMwitty-crayon-22786
09/07/2022, 8:37 PMhundreds-father-404
09/07/2022, 8:37 PMtgt: EnvironmentTarget
from extract_process_config_from_environment
fixes the issue, when combined with your query rule fix. I'm gonna try narrowing down which Get
breaks thingswitty-crayon-22786
09/07/2022, 8:37 PMhundreds-father-404
09/07/2022, 8:37 PMand failing at runtimeWhich I just fixed locally. Bad
args.pop()
hundreds-father-404
09/07/2022, 8:37 PMwitty-crayon-22786
09/07/2022, 8:37 PMdiff --git a/src/python/pants/init/specs_calculator.py b/src/python/pants/init/specs_calculator.py
index f69b9784aa..d3cd085728 100644
--- a/src/python/pants/init/specs_calculator.py
+++ b/src/python/pants/init/specs_calculator.py
@@ -104,6 +104,6 @@ def calculate_specs(
def rules():
return [
QueryRule(ChangedAddresses, [ChangedRequest, EnvironmentName]),
- QueryRule(GitBinary, [GitBinaryRequest]),
- QueryRule(MaybeGitWorktree, [GitWorktreeRequest, GitBinary]),
+ QueryRule(GitBinary, [GitBinaryRequest, EnvironmentName]),
+ QueryRule(MaybeGitWorktree, [GitWorktreeRequest, GitBinary, EnvironmentName]),
]
hundreds-father-404
09/07/2022, 8:41 PMalso fyi removing tgt: EnvironmentTargetAh and this is because the rule graph didn't know how to produce
EnvironmentTarget
as EnvironmentName
wasn't provided, so Name -> Target
failed. Cool. Thanks again!witty-crayon-22786
09/07/2022, 8:43 PM