Skip to content

File paths in --target are handled in a sub-par manner #26639

Closed
@Tobba

Description

@Tobba

Currently if a file path is passed to --target it will be used as the target name. This has a few nasty side effects:

  • If relative paths are used different relative paths pointing to the same file will be seen as different targets
  • Relative paths pointing to different files may result in a match
  • If absolute paths are used the target specifications may not be moved around the filesystem without doing a full rebuild
  • The path to the target specification is leaked all over the place, and target-related errors become verbose

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