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

drop nix_direnv_watch_file - instead parse DIRENV_WATCHES #416

Merged
merged 6 commits into from
Nov 26, 2023
Merged

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Nov 26, 2023

No description provided.

@Mic92
Copy link
Member Author

Mic92 commented Nov 26, 2023

@mergify queue

Copy link
Contributor

mergify bot commented Nov 26, 2023

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at e42b6ce

@mergify mergify bot merged commit e42b6ce into master Nov 26, 2023
11 checks passed
@Mic92 Mic92 deleted the joerg-ci branch November 26, 2023 13:29
@polygon
Copy link
Contributor

polygon commented Nov 26, 2023

Using nix_direnv_watch_file is now causing direnv to fail completely until changed? How would I keep a .envrc working with older and newer versions of direnv?

@Mic92
Copy link
Member Author

Mic92 commented Nov 26, 2023

It still works, it just prints a warning:

direnv: loading ~/.homesick/repos/dotfiles/.envrc
direnv: `nix_direnv_watch_file` is deprecated - use `watch_file`
direnv: using flake

@Mic92
Copy link
Member Author

Mic92 commented Nov 26, 2023

To get rid of the warning you can use:

if ! has nix_direnv_version || ! nix_direnv_version 2.5.0; then
  source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.5.0/direnvrc" "sha256-5XwUul/GUzj52MC5LvjHaZXDW2iLnl93tEQSYm9f3Rc="
fi
watch_file foo.nix
use nix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants