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

Avoid top-level with ...; in pkgs/development/coq-modules #299010

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

philiptaron
Copy link
Contributor

Description of changes

Using with at a top-level scope is an anti-pattern. The tracking issue is #208242. This is a pure refactor: there is no functional change contained in this PR.

I used the refactor strategy that looks for the uses of names coming from lib, pkgs, python3Packages, and more.

Following advice, I also preferred to inherit names from lib instead of builtins where there was a choice. I also preferred to inherit from lib in one place, rather than to have a mixture of lib.thing and inherit (lib) thing.

There are no rebuilds when I run nixpkgs-review rev HEAD, so I've targeted master with this PR.

Things done

  • Tested compilation of all packages that depend on this change using nixpkgs-review rev HEAD.
  • Fits CONTRIBUTING.md.

@vbgl
Copy link
Contributor

vbgl commented Mar 28, 2024

Please change the manual first.

@philiptaron
Copy link
Contributor Author

Please change the manual first.

I did three weeks ago. 9f8a580

@vbgl
Copy link
Contributor

vbgl commented Mar 29, 2024

Here we go: #299927

@philiptaron
Copy link
Contributor Author

Here we go: #299927

This was merged; what would you like to do next?

@philiptaron philiptaron requested a review from vbgl April 3, 2024 04:23
@vbgl vbgl removed their request for review April 3, 2024 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants