hundreds-father-404
03/21/2020, 10:58 PMlist
and filter
, they must be able to meaningfully operate on V1-only targets, correct?witty-crayon-22786
03/21/2020, 10:59 PMwitty-crayon-22786
03/21/2020, 11:01 PMwitty-crayon-22786
03/21/2020, 11:02 PMwitty-crayon-22786
03/21/2020, 11:02 PMwitty-crayon-22786
03/21/2020, 11:03 PMwitty-crayon-22786
03/21/2020, 11:04 PMhundreds-father-404
03/21/2020, 11:04 PMclass CustomField(BoolField):
alias = "custom_field"
class JavaVersion(StringField):
alias = "java"
class JavaLibrary(Target):
alias = "java_library"
core_fields = (JavaVersion, CustomField)
That is, I don’t expect bindings to take much time and I would be happy to commit to writing high-quality documentation (already on my roadmap)
--
NB: this is only bindings - we are not expecting you to actually use V2. The bindings will convert back down into V1 targets automatically.witty-crayon-22786
03/21/2020, 11:04 PMhundreds-father-404
03/21/2020, 11:05 PMlist
and filter
working, i.e. goals that must work on V1 targets, if we required bindings, even if over a deprecation cyclewitty-crayon-22786
03/21/2020, 11:05 PMhundreds-father-404
03/21/2020, 11:05 PMwitty-crayon-22786
03/21/2020, 11:06 PMhundreds-father-404
03/21/2020, 11:06 PMwitty-crayon-22786
03/21/2020, 11:06 PMhundreds-father-404
03/21/2020, 11:07 PMhundreds-father-404
03/21/2020, 11:07 PMclass Provides(UnimplementedField):
alias = "provides"
(That’s it)witty-crayon-22786
03/21/2020, 11:07 PMwitty-crayon-22786
03/21/2020, 11:08 PMlist
cannot operate on struct, and need something higher level?hundreds-father-404
03/21/2020, 11:09 PMTargetAdaptor
or a variant of it. Then, we’d need V2 list to request both Targets
and LegacyTargets
and know how to work with both the Target API and this backwards-compatibility shimhundreds-father-404
03/21/2020, 11:09 PMand the advantage to bindings over “lowest common denominator being Struct” is that v2-ized goals like list cannot operate on struct, and need something higher level? (Precisely
hundreds-father-404
03/21/2020, 11:09 PMwitty-crayon-22786
03/21/2020, 11:09 PMwitty-crayon-22786
03/21/2020, 11:10 PMwitty-crayon-22786
03/21/2020, 11:11 PMhundreds-father-404
03/21/2020, 11:12 PMhundreds-father-404
03/21/2020, 11:13 PMespecially if that meant replacing the “Adaptor” abstractionExactly my thoughts. Without requiring bindings, we not only need to keep around Adaptor, but we also need to teach our V2 rules to handle both adaptor and the Target API, which would be a net loss from the situation 2 weeks ago
witty-crayon-22786
03/21/2020, 11:14 PM