getDefaultSubstituters() failing to open a store should warn with context #1034

Closed
opened 2025-11-16 00:49:51 +00:00 by raito · 1 comment
Owner

Describe the bug

If, for some reason, a substituer cannot be opened, we emit a logWarning(e.info()), but this warning has no context.

Steps To Reproduce

  1. Render .cache impossible to write, by having HOME=/var/empty
  2. Try to substitute from https://cache.nixos.org
  3. See /var/empty/.cache: Read-only filesystem with no context.
  4. Spend 5 hours like Raito on this.

Expected behavior

Warning should occur with a clear context.

nix --version output

2.93.3, 2.94.0-dev affected. (probably all Lix versions)

## Describe the bug If, for some reason, a substituer cannot be opened, we emit a `logWarning(e.info())`, but this warning has no context. ## Steps To Reproduce 1. Render `.cache` impossible to write, by having `HOME=/var/empty` 2. Try to substitute from `https://cache.nixos.org` 3. See `/var/empty/.cache: Read-only filesystem` with no context. 4. Spend 5 hours like Raito on this. ## Expected behavior Warning should occur with a clear context. ## `nix --version` output 2.93.3, 2.94.0-dev affected. (probably all Lix versions)
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/4640 ("libstore/getDefaultSubstituters: Add information when a substituters cannot be setup")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/4640", "number": 4640, "kind": "commit message"}], "cl_meta": {"4640": {"change_title": "libstore/getDefaultSubstituters: Add information when a substituters cannot be setup"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/4640](https://gerrit.lix.systems/c/lix/+/4640) ("libstore/getDefaultSubstituters: Add information when a substituters cannot be setup")
raito added this to the 2.95 milestone 2025-12-01 14:59:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1034
No description provided.