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

Track files referenced by --file #535

Open
viperML opened this issue Nov 25, 2024 · 2 comments
Open

Track files referenced by --file #535

viperML opened this issue Nov 25, 2024 · 2 comments

Comments

@viperML
Copy link

viperML commented Nov 25, 2024

use_flake, which uses nix print-dev-env accepts an installable, which can be:

  • flake
  • -f file.nix
  • --expr "myexpr"
  • /nix/store/...

Additionally, if using a -f file.nix, it won't detect changes on the file automatically.

Proposal

  • Rename use flake to use installable
  • Properly track changes when using --file
@Mic92
Copy link
Member

Mic92 commented Nov 25, 2024

Sorry, but that's too late. Breaking this interface would cause too much churn throughout the ecosystem and we also want to be compatible direnv's own implementation, which might come from some old debian/centos installation. In the majority of normal use cases it will be a flake so the name is not too bad. People also are more likely to know what a flake is compared to what a installable means.

@Mic92 Mic92 closed this as completed Nov 25, 2024
@Mic92
Copy link
Member

Mic92 commented Nov 25, 2024

We can actually support --file tracking though.

@Mic92 Mic92 reopened this Nov 25, 2024
@Mic92 Mic92 changed the title Name doesn't reflect actual usage (use_flake accepts installables) Track files referenced by --file Nov 25, 2024
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

No branches or pull requests

2 participants