Duplicated values and the purpose of the router system #131
-
|
Hi there, I've been trying to migrate my NixOS config to den as it seems like it will ultimately make more sense and be easier to use. To avoid creating a bunch of bugs at once, I'm trying to migrate my repo with as few changes as possible, after which I can start refactoring it to make the most sense in den. I've gotten stuck on a duplicate values bug that I can't seem to duplicate in the test repo, the classic "aspect being invoked multiple times" bug. Here is a commit of my repo at a state with the issue, running A core issue is I don't understand the dependency/routing system or why it needs to be able to output multiple times.
Thanks for your work, would love to see any advancement in NixOS management as it's ornery at its best. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 22 replies
-
|
Hey, I have not been able to find time to investigate this, nor look carefully at your repo, if you have made some progress please keep us updated. |
Beta Was this translation helpful? Give feedback.
-
|
No change after updating to the latest den, here's the error, and here's the error with --show-trace. Wish I could pull my weight more but I'm still very baffled by the dependency system would induce an aspect twice. |
Beta Was this translation helpful? Give feedback.
-
|
Today we solved #216, it was a tough one, not sure if that had anything to do with this other thread. |
Beta Was this translation helpful? Give feedback.
-
|
Hey Vic! Thank you so much for the updates to the documentation, they're very high quality and I think I would have understood the system much better the first time. Also hooray for graphs 😁 Your updates so far have fixed two of my duplication bugs! first the one at module level and now the one under Now I'm facing a duplication bug in |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ProducerMatt, In main branch #272 Bidirectionality is now opt-in. Previously it was enabled by default causing confusion about why duplicate values might appear, the den.ctx.user description (Read the linked PR) provides insight on what Bidirectional means and why people were seeing duplicates since this was enabled by default. Also, I want to personally thank you for this discussion, your input has been very valuable and influential to Den, from using diagram on documentation, to |
Beta Was this translation helpful? Give feedback.


Hey @ProducerMatt, In main branch #272 Bidirectionality is now opt-in. Previously it was enabled by default causing confusion about why duplicate values might appear, the den.ctx.user description (Read the linked PR) provides insight on what Bidirectional means and why people were seeing duplicates since this was enabled by default.
Also, I want to personally thank you for this discussion, your input has been very valuable and influential to Den, from using diagram on documentation, to
den.ctxthat was started precisely for solving discussion, and nowden.provides.bidirectionalbeing opt-in and properly document why/how duplication can appear. Thanks a lot @ProducerMatt, for contributing …