Skip to content

Why can't we get an Artifact's parent directory? #1096

@cbarrete

Description

@cbarrete

https://buck2.build/docs/api/build/Artifact/ explains that we have to use cmd_args for that use case, but it's quite cumbersome.

Is there a reason for this limitation, or is it just a matter of someone doing the work and submitting a PR?

Furthermore, would it be possible/acceptable to add a parent_dir string parameter macro? This would be very helpful in cleaning up BUCK files that need to reference the directories in which artifacts are produced (e.g. adding them to some PATH-like env var).

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