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

fix: attribute 'throw' missing #795

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Conversation

Moraxyc
Copy link
Contributor

@Moraxyc Moraxyc commented Dec 7, 2024

       error: attribute 'throw' missing
       at /nix/store/bbfa2wvd0svlf0nlw78llkzv8w726vkv-source/flake.nix:34:28:
           33|         overlay = lib.warn "nur.overlay has been replaced by nur.overlays.default" overlay; # Added 2024-12-06
           34|         nixosModules.nur = lib.throw "nur.nixosModules.nur has been replaced by nur.modules.nixos.default"; # Added 2024-12-06
             |                            ^
           35|         hmModules.nur = lib.throw "nur.hmModules.nur has been replaced by nur.modules.home-manager.default"; # Added 2024-12-06
       Did you mean throwIf?

Have no idea why lib.throw doesn't point to builtins.throw, but the thing is that lib.throw doesn't exist, so we have to use builtins.throw

https://noogle.dev/f/lib/throw

@Moraxyc
Copy link
Contributor Author

Moraxyc commented Dec 7, 2024

cc maintainer: @Pandapip1

@Mic92 Mic92 merged commit 9e479b5 into nix-community:master Dec 7, 2024
3 checks passed
@Moraxyc Moraxyc deleted the fix-throw branch December 7, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants