Set priority for ssh and file cache substitutors
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 17.7k
- Forks
- 2k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 80
Description
Is it possible to overwrite or set ssh and file substitutors priority?
For https it is possible to do so with ?priority=n
My exact problem is:
I have 3 substitutors in nix.conf. https://, ssh://, file://. Then I do nix-build it always choose ssh:// substitutor. If I remove ssh:// from the list it starts to choose file://. So how to force it to prioritize file:// over ssh:// ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue points to nix.conf and the nix-build substitutor selection path; start by tracing how https:// applies ?priority=n and where ssh:// and file:// are ordered. Done means users can configure an explicit priority for ssh:// and file:// so file:// is selected ahead of ssh://, verified with the described nix-build setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100