https://pantsbuild.org/ logo
#development
Title
# development
a

aloof-angle-91616

03/25/2020, 4:01 AM
would we want to then express
name
as a special case of that?
h

hundreds-father-404

03/25/2020, 4:03 AM
name
is entirely special cased with the Target API and not treated as a normal
Field
. We pop it from
struct.kwargs()
before converting
HydratedStruct -> Target
. Rule authors can access the information via
tgt.address.target_name
, so it’s not necesssary to have the
Field
and it would be super tricky to get the
Field
working within the Target API framework, e.g. the default value being dynamic based on the physical location of the target
a

aloof-angle-91616

03/25/2020, 4:05 AM
thanks!
❤️ 1