Skip to content

Conversation

@ghthor
Copy link
Member

@ghthor ghthor commented May 16, 2025

When utilizing direnv and nix on darwin, you can enter directories and
have the ls flavor change from BSD to GNU. This change fixes those cases
by not caching which ls flavor we found at initialization time and
instead JIT'ing which flavor we have at each execution point.

@ghthor ghthor marked this pull request as draft May 16, 2025 05:30
When utilizing direnv and nix on darwin, you can enter directories and
have the ls flavor change from BSD to GNU. This change fixes those cases
by not caching which ls flavor we found at initialization time and
instead JIT'ing which flavor we have at each execution point.
@ghthor ghthor force-pushed the fix-ls-shortcuts-when-directories-can-change-from-bsd-to-gnu-ls branch from ab4320f to c83c4e8 Compare May 16, 2025 05:43
@ghthor ghthor marked this pull request as ready for review May 18, 2025 04:33
@ghthor ghthor requested review from jeffbyrnes and ndbroadbent May 18, 2025 04:33
@ghthor
Copy link
Member Author

ghthor commented May 18, 2025

This does reduce performance, but it is barely noticeable

@ghthor ghthor merged commit 226ad22 into scmbreeze:main May 19, 2025
4 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