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

direnvrc: avoid errors where possible #465

Merged
merged 3 commits into from
Mar 8, 2023

Conversation

bobvanderlinden
Copy link
Contributor

@bobvanderlinden bobvanderlinden commented Mar 7, 2023

Resolved #463

Currently whenever print-dev-env fails, direnvrc exits with a failure.
This makes watch_file and other direnv changes be rolled back. It results in the devenv.nix file not being watched anymore.

I did the same for failure to parse devenv.yaml.

In addition, the error message now directs the user to devenv.nix.

Lastly I saw some places where log_error seemed like a nicer alternative to log_status.

Currently whenever print-dev-env fails, direnvrc exits with a failure.
This makes watch_file and other direnv changes be rolled back. It
results in the devenv.nix file not being watched anymore.

In addition, the error message now directs the user to devenv.nix.
@domenkozar domenkozar merged commit 0b830c1 into cachix:main Mar 8, 2023
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.

direnv loses file watching when devenv build fails
2 participants