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

ignore relative paths in PATH #7282

Closed

Conversation

Alizter
Copy link
Collaborator

@Alizter Alizter commented Mar 11, 2023

Reading relative paths present in PATH is fragile behaviour and leads to issues such as #6907. We explicitly filter any relative paths when reading PATH.

Signed-off-by: Ali Caglayan alizter@gmail.com

Reading relative paths present in PATH is fragile behaviour. We
explicitly filter any relative paths when reading PATH.

Signed-off-by: Ali Caglayan <alizter@gmail.com>

<!-- ps-id: b71f4ba5-99be-42a7-a830-784811017345 -->
@Alizter Alizter requested review from nojb and rgrinberg March 11, 2023 12:18
Copy link
Collaborator

@nojb nojb left a comment

Choose a reason for hiding this comment

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

This change is more general than what I had in mind (filtering out relative paths only for the file watching mechanism), but indeed changing this across the board may make sense as it would make Dune more predictable.

There is a small chance this make break some workflows (eg someone setting PATH=.:$PATH in a CRAM test), but I am overall in favour.

@Alizter
Copy link
Collaborator Author

Alizter commented Mar 11, 2023

Yeah, I suppose this could be too restrictive and heavy handed. I guess we could change it so that only watch mode filters, but I don't like the difference in behaviour between the regular build.

Maybe at the end of the day, the current behaviour is the most expected by a user and we should just fix watch mode's fsevents.

@Alizter Alizter added the requires-team-discussion This topic requires a team discussion label Mar 11, 2023
@Alizter
Copy link
Collaborator Author

Alizter commented Mar 11, 2023

I don't want to do this in the end.

@Alizter Alizter closed this Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires-team-discussion This topic requires a team discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants