Skip to content

Improve cache warning messages #2095

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

Merged
merged 3 commits into from
Nov 18, 2020
Merged

Conversation

Gabriella439
Copy link
Collaborator

The immediate motivation for this fix is to ensure that
command-line utilities other than dhall correctly warn about
issues with cache directories, as reported in:

#2091 (comment)

The main change along those lines is to move the cache check from
the Dhall.Main module to checking on the fly as cache files are
read/written. However, in order to avoid going back to too many
cache warnings this also includes logic to avoid warning more than
once by tracking a cacheWarning state Bool.

This also includes a small improvement to the permissions error
message to better render the directory permissions.

The immediate motivation for this fix is to ensure that
command-line utilities other than `dhall` correctly warn about
issues with cache directories.

The main change along those lines is to move the cache check from
the `Dhall.Main` module to checking on the fly as cache files are
read/written.  However, in order to avoid going back to too many
cache warnings this also includes logic to avoid warning more than
once by tracking a `cacheWarning` state `Bool`.

This also includes a small improvement to the permissions error
message to better render the directory permissions.
@mergify mergify bot merged commit c5ec6d6 into master Nov 18, 2020
@mergify mergify bot deleted the gabriel/improve_cache_warning_3 branch November 18, 2020 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants