-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "cycle detected" when building under specific circumstances #167
Comments
It sets |
Note that NixOS/nix#494 is a breaking change as it needs broad support in Nix's installed base before being useful, so even if someone were to prioritize an implementation effort, it would take a significant amount of time for the feature to materialize as a good default solution. I'd suggest to remove the |
Will do.
Is there an upstream issue for this? |
Not an issue, but the best context I could find |
Thank you all for the quick reaction, help and fix! <3 That fixes the problem for me! (although I'm still wondering why this only happened for me with the |
Normally I'd say |
Yeah, while researching the problem I came across the same tip that the paths should be in the store directory, but for some reason they weren't for me (Nix 2.13.3). When I run But anyway, it works now, so it's not really important ;) |
Under certain circumstances I don't quite understand yet, I'm running into
cycle detected
errors with recent versions of haskell-flake.I've narrowed it down to the combination of having a
Paths_
(see here) defined underother-modules
and usingpandoc
underbuild-depends
in the cabal file, removing either one "fixes" the problem. I have absolutely no clue what happens there that doesn't seem to happen with the other packages I use.I've created a minimal reproducing example here: https://git.eisfunke.com/software/experiments/-/tree/haskell-flake-mwe
This seems to be broken since the refactor for modular overrides in commit 996f5c2.
nix build
works in my example withgithub:srid/haskell-flake?rev=74210fa80a49f1b6f67223debdbf1494596ff9f2
(the commit before the mentioned one).But with
github:srid/haskell-flake?rev=996f5c2cdc67285c4990df378976f9dbf26f8401
I get:The text was updated successfully, but these errors were encountered: