-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
running nix-channel --update
twice does not update the second time
#12409
Comments
nix-channel --update
twice does not update the second time
Do you see the same with |
It still seems to me that |
It seems to me that the behaviour is as designed, see https://nix.dev/manual/nix/2.24/command-ref/conf-file#conf-tarball-ttl
It's quite unusual to need to update a tarball immediately after a prior update, which is why the default is 6 hours. You can of course use |
I also don't agree that it's so unusual. I can't speak from personal experience because I don't use nix channels very much (this came up in a professional context), but I can think of three cases that come up quite naturally:
Setting |
It's like if |
Correcting myself: it's one hour, not six.
Yes, |
😮 Does this apply to Do you understand my argument though? Maybe from an implementation standpoint this makes sense, but from the perspective of a user, the purpose of |
Describe the bug
If you run
nix-channel --update
, and then update a channel upstream and runnix-channel --update
again, it will not pull the update. It seems to be hitting the fetcher cache.Steps To Reproduce
So far so good. this is what we would expect, but then, back at the command line...
Uh oh! no update.
If we run
nix-channel --update -vvvvvv
, it shows:And if I clear the cache manually
Expected behavior
nix-channel --update
will not cache anything and always update.Metadata
nix-env (Nix) 2.24.11
Additional context
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: