Skip to content
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

After implementation of digga's rakeLeaves, can't rebuild in the presence of */modules-list.nix #351

Closed
cipharius opened this issue Jul 30, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@cipharius
Copy link

cipharius commented Jul 30, 2021

Solution: before updating to the implementation of rakeLeaves for modules, make sure to first merge 5bd943f — which tries to tell you what to do when the relevant merge conflict appears.

Expected Behavior

Rebuild without errors after flake update.

Current Behavior

I get an undescriptive error originating from nixpkgs repository. It might be related to my setup, but the error doesn't really help finding the reason it's broken. Tested both core and develop branches, both don't work.

Also, core branch has incorrect url to digga main branch, as it refers to non-existing master branch.

The error in question:

error: value is a list while a set was expected

       at /nix/store/m35mc9chdjl73yk17vcn4bsidngxqzky-source/lib/modules.nix:285:44:

          284|         options = {};
          285|         config = addFreeformType (addMeta (removeAttrs m ["_file" "key" "disabledModules" "require" "imports" "freeformType"]));
             |                                            ^
          286|       };
(use '--show-trace' to show detailed location information)

the store path leads to nixpkgs deriviation.

Steps to Reproduce

  1. nix develop
  2. bud rebuild HOST switch

Your Environment

My devos repository: https://github.com/cipharius/devos

@cipharius cipharius added the bug Something isn't working label Jul 30, 2021
@blaggacao
Copy link
Contributor

m here refers to a module, which for some reason appears to be a list. You'd have to look a little further up the trace stack to see where the offending value is actually coming from.

If you wish to publish the stactrace on e.g. 0x0.st I could try to help you analyze it.

Also, core branch has incorrect url to digga main branch, as it refers to non-existing master branch.

Thanks for the the note. I'll fix that asap.

@cipharius
Copy link
Author

Here, I uploaded the whole stack trace: http://0x0.st/-WnO.txt

@blaggacao
Copy link
Contributor

blaggacao commented Jul 30, 2021

Ok that didn't reveal much. 😕 Did you try to run devos/core with latest digga/main? That is probably not going to work.

Maybe we should pin core to a specific known working digga commit until we are able to merge develop back into core...

@cipharius
Copy link
Author

I was originally on core and switched to develop in hopes that the misterious issue would be resolved there.

I've tried changing nixpkgs source from release to master, but I get the same error.

@blaggacao
Copy link
Contributor

Ah, so it looks like you didn't resolve a merge conflict in the sense of the new digga lib.importModules. this file would be interpreted as a module via lib.importModules's use of lib.rakeLeaves.

@blaggacao
Copy link
Contributor

I hope this commit would have been able to hint appropriately and within context would it have been available before 5bd943f

@blaggacao blaggacao changed the title Can't rebuild after recent changes in digga repository structure After implementation of digga's rakeLeaves, can't rebuild in the presence of */modules-list.nix Aug 1, 2021
@blaggacao blaggacao pinned this issue Aug 1, 2021
@cipharius
Copy link
Author

Good catch!

Yeah, file deletion was a subtle conflict during merge alongsides more obvious conflicts, this notice would have helped.
But in general, I think switch to more consistent rakeLeaves approach is an important change.

Removing the modules-list.nix file does fix the issue, thank you!

@Pacman99 Pacman99 unpinned this issue Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants