Error message from output dependency cycles is unhelpful #551

Closed
opened 2024-10-15 22:27:56 +00:00 by jade · 2 comments
Owner

The error:

error: cycle detected in build of '/nix/store/aksg7yap79slndh0s0bx5vr422vbzcr1-capnproto-1.0.2.drv' in the references of output 'bin' from output 'dev'

It is unhelpful since it does not list the file that contains the cycle or instructions for how to keep the failed outputs to diagnose them or other similarly helpful information.

The error: `error: cycle detected in build of '/nix/store/aksg7yap79slndh0s0bx5vr422vbzcr1-capnproto-1.0.2.drv' in the references of output 'bin' from output 'dev'` It is unhelpful since it does not list the file that contains the cycle or instructions for how to keep the failed outputs to diagnose them or other similarly helpful information.
jade added this to the Error reporting project 2024-10-15 22:27:56 +00:00
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/2074 ("packaging: use in-tree capnproto derivation")
  • commit message in cl/3892 ("libstore/local-derivation-goal: show tree with references that lead to an output cycle")
  • commit message in cl/3888 ("libutil/topo-sort: return std::variant<std::vector, Cycle>")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2074", "number": 2074, "kind": "commit message"}, {"backlink": "https://gerrit.lix.systems/c/lix/+/3892", "number": 3892, "kind": "commit message"}, {"backlink": "https://gerrit.lix.systems/c/lix/+/3888", "number": 3888, "kind": "commit message"}], "cl_meta": {"2074": {"change_title": "packaging: use in-tree capnproto derivation"}, "3892": {"change_title": "libstore/local-derivation-goal: show tree with references that lead to an output cycle"}, "3888": {"change_title": "libutil/topo-sort: return std::variant<std::vector<T>, Cycle>"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/2074](https://gerrit.lix.systems/c/lix/+/2074) ("packaging: use in-tree capnproto derivation") * commit message in [cl/3892](https://gerrit.lix.systems/c/lix/+/3892) ("libstore/local-derivation-goal: show tree with references that lead to an output cycle") * commit message in [cl/3888](https://gerrit.lix.systems/c/lix/+/3888) ("libutil/topo-sort: return std::variant<std::vector<T>, Cycle>")
ma27 self-assigned this 2025-08-03 12:53:35 +00:00
Member

I have a shitty proof of concept locally that uses genGraphString, but that requires a bit more rework on some parts to make actually reasonable. Will try to submit a CL for this soonish.

I have a shitty proof of concept locally that uses genGraphString, but that requires a bit more rework on some parts to make actually reasonable. Will try to submit a CL for this soonish.
Sign in to join this conversation.
No milestone
No assignees
3 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#551
No description provided.