-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
nix flakes is too aggressive with caching when using things like nix run github:...
#4007
Comments
as a workaround, add |
You can pass |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
We probably want to check the current git commit for all the git sources (github, git+https, git+ssh, git+file), right? |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
Is there any equivalent for that on nixos-rebuild? Even if I add --refresh, nix doesn't seem to notice that the repo I'm importing in my flake changed so it just rebuilds from cache |
@LuNeder maybe the following will help: |
Describe the bug
I need to be able to tell users that they can run the listed command.
But I really can't have much faith in which version they're getting because of the type of caching that's going on. I'm making fixes, pushing, and the command just spits out the same error. I don't see an intuitive way to bust the cast. I think it ought to be checking much more aggressively when given external references like
github:
.Expected behavior
A clear and concise description of what you expected to happen.
nix-env --version
outputnix-env (Nix) 3.0pre20200829_f156513
nix (Nix) 3.0pre20200829_f156513
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: