Repository navigation
git: reorder and tidy build process - #370888
Merged
Merged
Conversation
This was referenced Jan 10, 2025
Member
Author
|
I'm just watching a build now, and at least for |
me-and
marked this pull request as draft
February 14, 2025 16:59
me-and
marked this pull request as ready for review
February 14, 2025 18:57
Member
Author
This doesn't seem to make any difference to the build results, so specifying it explicitly is unnecessary and confusing.
Remove comments about notification scripts, as these were removed in a68c12d (git: Remove phony not-supported wrappers., 2014-04-05), as well as the `notSupported` function which is now a pointless wrapper for deleting a file. Also changes the deletion behaviour such that, if the file being deleted doesn't exist, the build will fail to highlight this unexpected event, rather than silently carrying on with the build process.
To save a small amount of time during builds, don't patch shebangs in test scripts when the test scripts won't be used.
philiptaron
approved these changes
Jun 18, 2025
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've been testing Git builds against the v2.48.0 release candidates, hit some problems, and made some fixes.
The key fix is to build the Documentation directory before building documentation for
contrib/subtree. This is partly just good practice -- without this fix, the documentation doesn't get built until the install stage -- but it's also necessary as of v2.48.0, whenDocumentation/asciidoc.confis required for thecontrib/subtreedocumentation to build successfully, and that file is only built in the main documentation build stage.Edit: The part of this PR that was critical to Git building from v2.48.0 onwards was merged as part of #372784, but the rest of the tidying is – I think – still useful. I've also now added myself as a package maintainer.
This is a big collection of small enhancements and maintainability fixes to the Git packaging code; I've lumped several commits into a single PR for ease of reviewing and merging, but I'm happy to split it into multiple PRs if that's preferable.
Things done
gitgit.passthru.tests.withInstallCheckgitMinimalgitMinimal.passthru.tests.withInstallCheckgitFullgitFull.passthru.tests.withInstallCheckgitSVNgitSVN.passthru.tests.withInstallCheckgit-docnixosTests.gitdaemonnixosTests.buildbottests.fetchgitgitgit.passthru.tests.withInstallCheckgitMinimalgitMinimal.passthru.tests.withInstallCheckgitFullgitFull.passthru.tests.withInstallCheckgitSVNgitSVN.passthru.tests.withInstallCheckgit-docnixosTests.gitdaemonnixosTests.buildbot(appears to be broken prior to my fix)tests.fetchgitAdd a 👍 reaction to pull requests you find important.