-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
git: Use asciidoctor instead of asciidoc for manpages #102020
Conversation
a864ed7
to
ac083f9
Compare
When building this PR on darwin it fails because pango fails to build. I created #102059 to fix this which should be merged before or along with this PR or we break a lot for darwin. |
I'm not sure why, but one of the arch tests now fail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this yesterday and everything still seemed fine. With the other PR merged this should be good to go now.
I'm not sure why, but one of the arch tests now fail
IIRC that test can be flaky on AArch64, I'll try to restart the build.
If that's a problem on Hydra as well we also might want to disable that test on AArch64.
Edit:
On Hydra it seems fine: https://hydra.nixos.org/job/nixpkgs/trunk/git.aarch64-linux/all
I guess it only happens with @GrahamcOfBorg
, became flaky in 2.29, or this PR has indeed some very strange effect on the tests that only breaks AArch64.
Asciidoc is severely outdated and is replaced by asciidoctor. Eliminating asciidoc gets rid of a python2 dependency, see NixOS#101964
ac083f9
to
bbf96d8
Compare
Ok, the test passes now. I'll try to keep an eye on it when checking future PRs. Edit: And thanks for the PR! As a side-effect this also improved the formatting of the man pages a bit (e.g. ISO dates and right-justified numbers for enumerations). |
This makes the git HTML manual reproducible. It also removes the `git.info` manual, since this one is basically entirely broken anyway. This likely happened when we migrated from asciidoc to asciidoctor in NixOS#102020. I don't suggest going back to asciidoc: that would re-introduce a python2 dependency and another reproducibility issue with the HTML docs. Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Motivation for this change
Asciidoc is severely outdated and is replaced by asciidoctor, according to https://github.com/asciidoc/asciidoc
Eliminating asciidoc gets rid of a python2 dependency, see #101964.
This change should only affect documentation, but triggers rebuilds of 2498 packages.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Closure size slightly increased:
/nix/store/zz276mn9d0z2zy945a4155ysgxr46zn6-git-2.29.1 376934920 # with asciidoc
/nix/store/msgklz0qd10q67h9166ksa9f7fz324y6-git-2.29.1 379787920 # with asciidoctor
The size changes are mainly due to larger HTML output.