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

lib.sources.assertEqual for migrating source filters #222900

Open
roberth opened this issue Mar 24, 2023 · 0 comments
Open

lib.sources.assertEqual for migrating source filters #222900

roberth opened this issue Mar 24, 2023 · 0 comments

Comments

@roberth
Copy link
Member

roberth commented Mar 24, 2023

Project description

We have upcoming changes in the source filtering library.
Lazy trees will motivate users to make changes to their source filtering expressions.
We could facilitate this by suggesting a simple process and providing a function that supports it.

  1. nix eval .#packages.foo.src
  2. src = lib.sources.assertEqual <paste original source path here> (<new filtered source, perhaps written from scratch>)
  3. iterate and nix eval .#packages.foo.src. When it returns no more relevant differences, remove the lib.assertEqualSourceFilter <path> part.

Refs

Metadata

  • homepage URL:
  • source URL:
  • license: mit, bsd, gpl2+ , ...
  • platforms: unix, linux, darwin, ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant