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

make sure not to use cached channels for nix-channel --update #2145

Merged
merged 1 commit into from May 15, 2018
Merged

make sure not to use cached channels for nix-channel --update #2145

merged 1 commit into from May 15, 2018

Conversation

yorickvP
Copy link
Contributor

@yorickvP yorickvP commented May 9, 2018

@@ -55,6 +55,8 @@ struct Downloader
recent version, and if so, download it to the Nix store. */
Path downloadCached(ref<Store> store, const string & uri, bool unpack, string name = "",
const Hash & expectedHash = Hash(), string * effectiveUri = nullptr);
Path downloadCached(ref<Store> store, const string & uri, bool unpack, string name,
const Hash & expectedHash, string * effectiveUri, int ttl);
Copy link
Member

Choose a reason for hiding this comment

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

Why a separate method? Wouldn't adding a parameter int ttl = settings.tarballTtl work?

@yorickvP
Copy link
Contributor Author

@edolstra updated

@edolstra edolstra merged commit 966407b into NixOS:master May 15, 2018
@edolstra
Copy link
Member

Thanks!

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.

None yet

3 participants