Skip to content

Make Nix optional when using direnv - #1547

Merged
lovasoa merged 1 commit into
mainfrom
fix/optional-direnv-nix
Oct 12, 2026
Merged

lovasoa merged 1 commit into
mainfrom
fix/optional-direnv-nix

Conversation

@lovasoa

@lovasoa lovasoa commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Only run use flake when nix is available on PATH, so active direnv works for contributors without Nix.
  • Clarify the optional behavior in the contributor setup documentation.

Validation

  • bash -n .envrc
  • git diff --check
  • Isolated Bash checks with Nix absent and a mock Nix executable present: setup skips silently without Nix and calls use flake when available.
  • Verified flake setup failures still propagate.

Nix, direnv, and ShellCheck are not installed locally, so a full direnv/flake integration run was unavailable.

@lovasoa
lovasoa enabled auto-merge October 12, 2026 09:33
@lovasoa
lovasoa added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 344ff9f Oct 12, 2026
18 checks passed
@lovasoa
lovasoa deleted the fix/optional-direnv-nix branch October 12, 2026 10:14
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.

1 participant