I’m toying around with getting a new `env()` const...
# development
c
I’m toying around with getting a new
env()
construct for BUILD files, but hit a graph issue I’ve not figured out yet: 🧵
Down to just a few of these:
Copy code
ValueError: Encountered 4 rule graph errors:
  Too many sources of dependency FallibleProcessResult for @rule(pants.engine.process:256:fallible_to_exec_result_or_raise(FallibleProcessResult, ProductDescription, KeepSandboxes) -> ProcessResult): [
        "@rule(<intrinsic>(Process, ProcessConfigFromEnvironment) -> FallibleProcessResult) (for (EnvironmentNameRequest, Process))",
        "@rule(<intrinsic>(Process, ProcessConfigFromEnvironment) -> FallibleProcessResult) (for (EnvironmentNameRequest, Process))",
        "@rule(<intrinsic>(Process, ProcessConfigFromEnvironment) -> FallibleProcessResult) (for (EnvironmentNameRequest, Process))",
    ]
...
I’ve tried slapping on a bunch of
@rule(_masked_types=[EnvironmentName])
where it seemed possibly relevant but it made no difference. Either that’s not what’s needed or I’ve placed them wrong, I guess.. 😅
Anyone recognize this error?
(which now is a big ball of mess as I try out different approaches 😛 )
I’ve tried slapping on a bunch of
@rule(_masked_types=[EnvironmentName])
where it seemed possibly relevant but it made no difference.
tried this at a few other places, and that had an impact, but seemed to just shift the issue around and in some cases seemed to make things worse.. 😷
h
what would this do?
c