what is the target API binding for BUILD file obje...
# development
a
what is the target API binding for BUILD file objects?
h
I’m not quite sure what you mean. Is this the
target_types
register.py
entry point question?
a
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
Ohh, yes, it is still
objects
. We punted on that because Daniel’s prelude macros feature was in flight.
a
ok, i haven't been following that
is that something we're thinking we're going to use?
h
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