:thread: re using the multi-`Parameter` syntax of ...
# development
f
🧵 re using the multi-
Parameter
syntax of
await Get
(and the joys of rule graph errors)
https://github.com/pantsbuild/pants/pull/16843 attempts to add a
GoBuildContext
type which will hold compiler options to apply when compiling Go files. The goal is to use the multi-Parameter syntax of
Get
to allow the
go_binary
rule to override
GoBuildContext
with binary-specific options.
As documented in that PR, I get lots of rule graph errors instead. (The initial option was a "cgo allowed" option which could disable cgo usage for a binary through all of its transitive dependencies.)
So many rule graph errors that I don't know where to begin to diagnose what missing. I attempted to see if the
in_scope_types
parameter of
@union
was involved, but did not manage to solve the rule graph errors.
any advice?
w
i’ll try to take a look at this tomorrow.
f
whenever there is time. this is low on the priority stack for me. the purpose in opening the thread is just to make sure the multi-parameter Get support itself doesn't have an issue.