AnonTarget
Accessors to the promise of the anon rule and the promised artifacts associated with the rule.
AnonTarget.artifact
def AnonTarget.artifact(name: str)
Gets a specific StarlarkPromiseArtifact
by name. Returns an error if the name was not found in the registered promise artifacts for the anon target.
AnonTarget.artifacts
def AnonTarget.artifacts()
Returns a dict where the key is the promise artifact's name, and the value is the StarlarkPromiseArtifact
.
To get a promise artifact where the short path is accessible, call ctx.actions.assert_short_path(...)
and
pass in the artifact retrieved from this dict.
AnonTarget.promise
AnonTarget.promise: promise
Returns the promise that maps to the result of the anon rule.