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 the nixpkgs manual, build it on lib changes #219488

Merged
merged 2 commits into from
Mar 4, 2023

Conversation

ncfavier
Copy link
Member

@ncfavier ncfavier commented Mar 4, 2023

#219235 broke the nixpkgs manual because it introduced lib.strings.asciiTable, an attribute set, and the code for generating lib function locations naively recurses into attribute sets to determine what subsets we have. See also #116472 (comment)

This wasn't detected because we don't build the nixpkgs manual when lib changes. This PR addresses that, and hides asciiTable for now (I don't think it should be exposed anyway).

The workflow change won't affect this PR but I can confirm it builds locally.

ncfavier added 2 commits March 4, 2023 13:20
Since it's an attribute set, the lib function location generating code
tries to generate locations for each of the characters...
The nixpkgs manual includes documentation for `lib` functions.
@ncfavier ncfavier requested review from edolstra, infinisil, a team, Mic92 and zowoq as code owners March 4, 2023 12:27
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Mar 4, 2023
@fricklerhandwerk
Copy link
Contributor

Thanks for figuring this out!

@vcunat vcunat merged commit 1c663ac into NixOS:master Mar 4, 2023
@vcunat
Copy link
Member

vcunat commented Mar 4, 2023

Let me merge fast to fix the CI which could confuse people.

@ncfavier ncfavier deleted the fix-manual branch March 4, 2023 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: policy discussion 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants