Skip to content

Move getTarballCache() into fetchers::Settings#14368

Merged
edolstra merged 1 commit intomasterfrom
keep-tarball-cache-open
Nov 10, 2025
Merged

Move getTarballCache() into fetchers::Settings#14368
edolstra merged 1 commit intomasterfrom
keep-tarball-cache-open

Conversation

@edolstra
Copy link
Member

Motivation

fetcher::Settings::getTarballCache() caches the GitRepo object, so this keeps the tarball cache open across calls.

Cherry-picked from DeterminateSystems#49.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This keeps the tarball cache open across calls.
@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Oct 27, 2025

namespace nix {

struct GitRepo;
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to not have this in fetchers too?

Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

Thanks for getting rid of a global variable, Eelco!

@edolstra edolstra added this pull request to the merge queue Nov 10, 2025
Merged via the queue into master with commit 070e8ee Nov 10, 2025
20 checks passed
@edolstra edolstra deleted the keep-tarball-cache-open branch November 10, 2025 18:05
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fetching Networking with the outside (non-Nix) world, input locking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants