这是indexloc提供的服务,不要输入任何密码
Skip to content

Provide some way in the CLI to execute providers and get values out of them #1033

@lf-

Description

@lf-

buck2 audit providers exists which can give you some details about providers:

$ buck audit providers toolchains//:hspec-discover
toolchains//:hspec-discover (<unspecified>):
  Providers([
    DefaultInfo(
      sub_targets={},
      default_outputs=[ <build artifact out.link bound to toolchains//:hspec-discover (<unspecified>)> ],
      other_outputs=[]
    ),
    BinDirInfo( args=cmd_args(
      <build artifact out.link bound to toolchains//:hspec-discover (<unspecified>)>,
      "bin",
      delimiter="/"
    ) ),
    NixDynamicInfo( dynamic=DynamicValue<toolchains//:hspec-discover (<unspecified>)_0> ),
    RunInfo( args=cmd_args( cmd_args(
      <build artifact out.link bound to toolchains//:hspec-discover (<unspecified>)>,
      "bin",
      "hspec-discover",
      delimiter="/"
    ) ) )
  ])

However, I can't figure out a way to actually build one of those and get the result if it's not a subtarget. Is this a thing in the CLI? I would like to be able to interactively poke around the build graph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions