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

flakes: Don't run shellHook on cached dev shells #91

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

ryneeverett
Copy link
Contributor

This makes the behavior of use flake consistent with that of use nix.

Resolve #90.

direnvrc Outdated
@@ -135,6 +135,7 @@ use_flake() {

log_status renewed cache
else
sed -i '/eval \"\$shellHook\"/d' "$profile_rc"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be not substituted once when it is cached?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay. maybe not worth the complexity.

@Mic92
Copy link
Member

Mic92 commented Jun 8, 2021

shellcheck is a bit unhappy, otherwise ok.

This makes the behavior of `use flake` consistent with that of `use
nix`.

Resolve nix-community#90.
@ryneeverett
Copy link
Contributor Author

CI should pass now.

@Mic92 Mic92 merged commit 6c32d2d into nix-community:master Jun 11, 2021
@bbenne10 bbenne10 mentioned this pull request Mar 8, 2022
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.

shellHook caching inconsistency with and without flakes
2 participants