Repository navigation
feat: Add configurable temporary directory for NAR file downloads - #268
Merged
Merged
Conversation
Owner
Author
This was referenced Aug 24, 2025
Merged
kalbasit
marked this pull request as ready for review
August 24, 2025 22:27
kalbasit
commented
Aug 24, 2025
Owner
Author
kalbasit
added a commit
that referenced
this pull request
Aug 25, 2025
The flag was added by #268 but I forgot to document it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

TL;DR
Added support for configuring the temporary directory used when downloading NAR files instead of streaming the download directly to the store.
What changed?
--cache-temp-pathCLI flag (and correspondingCACHE_TEMP_PATHenvironment variable) to specify the temporary directory pathos.TempDir())How to test?
nix-cache-info serve --cache-temp-path=/path/to/temp/dirCACHE_TEMP_PATH=/path/to/temp/dir nix-cache-info serveWhy make this change?
This change provides more control over where temporary NAR files are stored during the download process. This is particularly useful in environments where: