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

devenv: caching fixes and improvements #1649

Merged
merged 3 commits into from
Dec 23, 2024
Merged

devenv: caching fixes and improvements #1649

merged 3 commits into from
Dec 23, 2024

Conversation

sandydoo
Copy link
Member

  • Reduce writes to .devenv.flake.nix to make it viable to be watched for changes by direnv.
  • Track .devenv.flake.nix to captures changes to other flake inputs, like TMPDIR and PWD. Changes to these should cause cache invalidation.
  • Sort command arguments to avoid cache misses stemming from non-deterministic ordering.

Improves our integration with direnv, which is only capable of watching
files based on mtime. We have to take care not to touch watched files
needlessly.
@domenkozar domenkozar merged commit 4b8677f into main Dec 23, 2024
8 checks passed
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