Imports are done twice some how. #1855

Closed
opened 2024-08-07 04:09:13 +00:00 by mrvandalo · 4 comments
Contributor

When I run nix flake lock --update-input clan-core

I get this error:

error: The option `components.nixos.boot.tor.enable' in `/nix/store/86vc3brqn84qivgw0zzki3r2kk1if0py-fff6liylq6lb44n60014n61s2g8flg9j-source/components/nixos/tor-ssh.nix' is already declared in `/nix/store/fff6liylq6lb44n60014n61s2g8flg9j-source/components/nixos/tor-ssh.nix'.

it seems imports are done twice now. When I remove the import of my components directory (at the one point where I import it) I get errors that the options I defined in there are not present anymore.

https://git.ingolf-wagner.de/palo/nixos-config < is my repo

I use the flake-parts with clan

When I run `nix flake lock --update-input clan-core` I get this error: ``` error: The option `components.nixos.boot.tor.enable' in `/nix/store/86vc3brqn84qivgw0zzki3r2kk1if0py-fff6liylq6lb44n60014n61s2g8flg9j-source/components/nixos/tor-ssh.nix' is already declared in `/nix/store/fff6liylq6lb44n60014n61s2g8flg9j-source/components/nixos/tor-ssh.nix'. ``` it seems imports are done twice now. When I remove the import of my `components` directory (at the one point where I import it) I get errors that the options I defined in there are not present anymore. https://git.ingolf-wagner.de/palo/nixos-config < is my repo I use the `flake-parts` with clan
Author
Contributor

https://git.ingolf-wagner.de/palo/nixos-config/actions/runs/128 < here you can see the error

For this build I just ran

nix flake lock --update-input clan-core
warning: updating lock file '/home/palo/dev/nixos/nixos-config/flake.lock':
• Updated input 'clan-core':
    'git+https://git.clan.lol/clan/clan-core?ref=refs/heads/main&rev=99a87a6120291deef7a2320a94e1fbdbf5674ab6' (2024-07-29)
  → 'git+https://git.clan.lol/clan/clan-core?ref=refs/heads/main&rev=ec16059abc26901ca5d700b11c5babc7f1cc744a' (2024-08-06)
• Updated input 'clan-core/treefmt-nix':
    'github:numtide/treefmt-nix/888bfb10a9b091d9ed2f5f8064de8d488f7b7c97' (2024-07-20)
  → 'github:numtide/treefmt-nix/07741a9babd0754bf73fb47a6340d6289eabd1d6' (2024-08-03)

and added clan.directory = ./.; in my flake.nix

https://git.ingolf-wagner.de/palo/nixos-config/actions/runs/128 < here you can see the error For this build I just ran ``` nix flake lock --update-input clan-core warning: updating lock file '/home/palo/dev/nixos/nixos-config/flake.lock': • Updated input 'clan-core': 'git+https://git.clan.lol/clan/clan-core?ref=refs/heads/main&rev=99a87a6120291deef7a2320a94e1fbdbf5674ab6' (2024-07-29) → 'git+https://git.clan.lol/clan/clan-core?ref=refs/heads/main&rev=ec16059abc26901ca5d700b11c5babc7f1cc744a' (2024-08-06) • Updated input 'clan-core/treefmt-nix': 'github:numtide/treefmt-nix/888bfb10a9b091d9ed2f5f8064de8d488f7b7c97' (2024-07-20) → 'github:numtide/treefmt-nix/07741a9babd0754bf73fb47a6340d6289eabd1d6' (2024-08-03) ``` and added `clan.directory = ./.;` in my flake.nix
kenji added the
bug
label 2024-08-07 09:02:32 +00:00
kenji added this to the Clan_Kanban_Board project 2024-08-07 10:09:03 +00:00
Owner

clan.directory = ./.;
Should not be needed for flake-parts, that was a regression.
That is fixed now.

`clan.directory = ./.;` Should not be needed for `flake-parts`, that was a regression. That is fixed now.
Owner

@mrvandalo,
Thank you for the bug report and the incredibly valuable reproducer!
I expect this to be fixed by: #1860

Please confirm if it is actually fixed.

@mrvandalo, Thank you for the bug report and the incredibly valuable reproducer! I expect this to be fixed by: #1860 Please confirm if it is actually fixed.
kenji closed this issue 2024-08-07 12:29:25 +00:00
Author
Contributor

Yes all good, thank you.

Yes all good, thank you.
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: clan/clan-core#1855
No description provided.