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

Report better errors for globs pointing to non-existing directories #413

Merged
3 commits merged into from
Jan 15, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jan 15, 2018

Fix #412

| None ->
Loc.warn loc "Directory %s doesn't exist."
(Path.to_string_maybe_quoted dir);
state := G_evaluated [];
Copy link
Member

Choose a reason for hiding this comment

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

Did this mean that the non-existent glob would be executed more than once? So it's a bit more than just better error reporting?

Copy link
Author

Choose a reason for hiding this comment

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

It's not documented, but static_deps is assumed to turn all the Paths_glob from G_unevaluated to G_evaluated. It wasn't done in this branch and it was a mistake

@ghost ghost merged commit af5d7f5 into master Jan 15, 2018
@ghost ghost deleted the better-error-for-glob-in-non-existing-dirs branch January 15, 2018 14:59
This pull request was closed.
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