Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tobba opened this issue Jun 28, 2015 · 3 comments
Closed

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

Tobba opened this issue Jun 28, 2015 · 3 comments

Comments

@Tobba
Copy link
Contributor

Tobba commented Jun 28, 2015

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
@Tobba
Copy link
Contributor Author

Tobba commented Jun 28, 2015

The workaround for this is using the (mostly) undocumented RUST_TARGET_PATH environment variable.

@steveklabnik
Copy link
Member

Triage: no change

@Mark-Simulacrum
Copy link
Member

I'm going to close in favor of #24666.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants