Skip to content
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

Error on absolute src paths #2853

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

illicitonion
Copy link
Collaborator

These lead to non-deterministic lockfile contents because they depend on the depth of the directory the repo is checked out into.

This may possibly introduce false positives because of hard-coded /dev/null or similar in actual published crates - hopefully it doesn't (ideally people aren't publishing this kind of thing to crates.io), but if it does, we can loosen those to a warning or add a per-crate opt-out or something.

@illicitonion illicitonion force-pushed the error-on-absoloute-srcs branch 2 times, most recently from 84a1dd4 to 2fd9476 Compare September 10, 2024 17:13
These lead to non-deterministic lockfile contents because they depend on
the depth of the directory the repo is checked out into.

This may possibly introduce false positives because of hard-coded
/dev/null or similar in actual published crates - hopefully it doesn't
(ideally people aren't publishing this kind of thing to crates.io), but
if it does, we can loosen those to a warning or add a per-crate opt-out
or something.
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

If you get a chance before merging can you bump the crate_universe version for this?

@illicitonion illicitonion added this pull request to the merge queue Sep 10, 2024
Merged via the queue into bazelbuild:main with commit 8ae5dc8 Sep 10, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants