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

aloof-angle-91616

05/01/2020, 1:18 AM
what is the target API binding for BUILD file objects?
h

hundreds-father-404

05/01/2020, 1:27 AM
I’m not quite sure what you mean. Is this the
target_types
register.py
entry point question?
a

aloof-angle-91616

05/01/2020, 1:27 AM
it appears to be:
Copy code
@classmethod
    def alias_groups(cls):
        return BuildFileAliases(
            objects={
                "pants": lambda x: x,
                "artifact": Artifact,
                "scala_artifact": ScalaArtifact,
                "public": Repository(
                    name="public", url="<http://maven.example.com>", push_db_basedir="/tmp"
                ),
            },
        )
h

hundreds-father-404

05/01/2020, 1:33 AM
Ohh, yes, it is still
objects
. We punted on that because Daniel’s prelude macros feature was in flight.
a

aloof-angle-91616

05/01/2020, 1:35 AM
ok, i haven't been following that
is that something we're thinking we're going to use?
h

hundreds-father-404

05/01/2020, 1:38 AM
Unless the repo never uses V1, they still need to have V1 bindings for the V2 target API, unfortunately. Meaning that they need to keep
build_file_aliases
around until then. So, we punted on what the future of
objects
is since
build_file_aliases
will be around a bit longer See https://github.com/pantsbuild/pants/pull/9618