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

Evaluate with aliases enabled additionally #693

Open
sternenseemann opened this issue Oct 20, 2024 · 4 comments
Open

Evaluate with aliases enabled additionally #693

sternenseemann opened this issue Oct 20, 2024 · 4 comments

Comments

@sternenseemann
Copy link
Member

NixOS/nixpkgs#349431 NixOS/nixpkgs#349783 show that changes to aliases can break evaluation of nixpkgs with aliases enabled while not affecting it with aliases disabled. Almost all downstream users will probably have aliases enabled, so this is a situation we should ideally check for. Saving grace is probably that most Hydra jobsets have aliases enabled.

@emilazy
Copy link
Member

emilazy commented Oct 21, 2024

If anyone implements this please at least give consideration to doing it in a way that lets changes like NixOS/nixpkgs#342112 be able to produce warnings without breaking CI 🥲

@SuperSandro2000
Copy link
Member

Are there any other breakages known other than the unmaintained node2nix project?

@lilyinstarlight
Copy link
Member

lilyinstarlight commented Oct 21, 2024

Are there any other breakages known other than the unmaintained node2nix project?

Well given ofborg does already evaluate with aliases enabled as an additional step, no

The ofborg code could be made to have one fewer gotcha (that may have very very indirectly caught this, but I'd have to test and it would have significantly increased eval check time) by forcing outpath eval, but nodePackages being dontRecurseIntoAttrs and therefore expected to have busted eval in general is a nixpkgs expectation/problem

@SuperSandro2000
Copy link
Member

it would have significantly increased eval check time

That is my main concern.

but nodePackages being dontRecurseIntoAttrs and therefore expected to have busted eval in general is a nixpkgs expectation/problem

That's because it is to big and has to many irrelevant things because well, it is auto generated. By moving to buildNpmPackage and friends we dodge that issue finally.

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

No branches or pull requests

4 participants