bug: Nix package build fails as test wants resolv.conf #2495

Closed
opened 2026-11-11 06:25:51 +00:00 by Henry-Hiles · 1 comment
Member

What is the bug?

admitted_joins_do_not_disappear_after_a_merge wants a system resolv.conf and errors out otherwise.

This breaks the nix package builds, including the static binary build for the alpha.

Steps to reproduce

nix build https://forgejo.ellis.link/continuwuation/continuwuity

Server name and version

N/A, 93173313ea

Additional context

Mentioned in https://matrix.to/#/!c10y-8Hm3mAW99j9KEKoWPQH2M_FxGwG-EVHK06iLKg/$nyYKlU8FiupYYVlMiS1ZGeGheJtHtZ3JHqCNj039lfU?via=continuwuity.org&via=matrix.org&via=continuwuity.rocks.

### What is the bug? `admitted_joins_do_not_disappear_after_a_merge` wants a system `resolv.conf` and errors out otherwise. This breaks the nix package builds, including the static binary build for the alpha. ### Steps to reproduce `nix build https://forgejo.ellis.link/continuwuation/continuwuity` ### Server name and version N/A, 93173313ea96e88516902ec64fdc7a4f1d6a5bb4 ### Additional context Mentioned in https://matrix.to/#/!c10y-8Hm3mAW99j9KEKoWPQH2M_FxGwG-EVHK06iLKg/$nyYKlU8FiupYYVlMiS1ZGeGheJtHtZ3JHqCNj039lfU?via=continuwuity.org&via=matrix.org&via=continuwuity.rocks.
Henry-Hiles changed title from bug: Nix failing to build as test wants resolv.conf to bug: Nix build fails as test wants resolv.conf 2026-11-11 06:26:46 +00:00
Henry-Hiles changed title from bug: Nix build fails as test wants resolv.conf to bug: Nix package build fails as test wants resolv.conf 2026-11-11 06:26:52 +00:00
Member

TLDR for why this happens: When creating a DNS resolver, the code tries to read /etc/resolv.conf and fails early if it doesn't exist, even if you have set CONTINUWUITY_DNS_SERVERS.

Fix will be to only fail if both the file doesn't exist and the config parameter hasn't been set, and then setting the config param in the test.

TLDR for why this happens: When creating a DNS resolver, the code tries to read /etc/resolv.conf and fails early if it doesn't exist, even if you have set `CONTINUWUITY_DNS_SERVERS`. Fix will be to only fail if both the file doesn't exist *and* the config parameter hasn't been set, and then setting the config param in the test.
Sign in to join this conversation.
No milestone
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
continuwuation/continuwuity#2495
No description provided.