Repository navigation
git: 2.47.2 -> 2.48.1 - #372784
git: 2.47.2 -> 2.48.1#372784
Conversation
|
@ofborg build git gitFull git.passthru.tests nixpkgs-manual nixpkgs-manual.tests |
|
Note this will be need to be bumped to 2.48.1 to include fixes for CVE-2024-50349 and CVE-2024-52006 (see also #373801) |
|
I've updated this PR to target Git v2.48.1 rather than v2.48.0. I'm not adding the security tag as I think the security issue is better addressed by #373801. |
SuperSandro2000
left a comment
There was a problem hiding this comment.
The commit message and PR title should not contain the v prefix.
Fixed, thank you! |
|
This version fixes security vulnerabilities (https://github.blog/open-source/git/git-security-vulnerabilities-announced-5/). Can we get this merged asap? |
|
I've merged the small update. Can you rebase this on staging to fix the conflict? |
|
@SuperSandro2000 done! Updated branch with updated commit message for the new version change. |
SuperSandro2000
left a comment
There was a problem hiding this comment.
build locally with success
|
Anyone has an idea why some tests from https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchgit/tests.nix#L49 are now suddenly failing? Do we just update the hashes? |
Ah! I've just looked at the different test outputs. The issue, at least for I'm not sure the best way to handle this. Options I can see:
I'd default to option 2 + a release note, but I'd be interested in thoughts from people who've been doing this longer than I have! |
|
Quoting https://nixos.org/manual/nixpkgs/unstable/#fetchgit (perma link):
IMHO we document very clearly that Given that, I suggest going with option 1. Opinions? |
For build process clarity, build documentation during the build phase. Without this change, the docs are built during the install phase as that's when `make` realises they're not yet present. This also means that the main Git documentation is built before the contrib/subtree documentation, which is necessary for the subtree documentation to build successfully in Git v2.48.0-rc0 and -rc1 (and presumably therefore in v2.48.0 when it is released).
|
@emilylange that makes sense to me! I've just pushed a new version of the branch that updates the hashes in the fetchgit tests, and has a commit message explaining the decision. |
|
There is a small number (48 vs 84) flip in the commit message of aaf1fff57dd7564ee48e419c7346c077ec6885a9:
vs
I normally don't comment on typos, but this feels like the one exception where is actually makes sense to me :) |
This version change includes a change to the contents of the .git directory, which results in changes to hashes for any fetchgit invocations that set leaveDotGit to true. Per the fetchgit documentation and discussions in NixOS#372784, the contents of the .git directory are not stable, so anyone using that should either only be using it for temporary testing purposes, or should be removing the .git directory in fetchgit's postFetch phase, so before the hash is calculated. That means there's no need to do any other handling here to avoid compatibility problems, and can just update the relevant hashes in the fetchgit tests. There's still a chance this will break some other builds because of the change to the contents of the .git directory. If so, whoever's responsible for those other derivations should either stop using leaveDotGit, or should follow the documented advice to remove the .git directory in the postFetch phase.
|
...oops, thank you! |
SuperSandro2000
left a comment
There was a problem hiding this comment.
To anyone finding this thread in the future: rm .git in postFetch please :)
Changelogs:
This also includes one commit from #370888, which is necessary for the build to complete.
No substantial changes that affect backwards compatibility AFAICS, so I don't think there's a need for a release note.
Haven't tested all executables in
bin/, but I did checkgit --versionas a quick test on top of the test suite and that's fine. Builds ofnixosTests.gitdaemon,git.passthru.testsandtests.fetchgit, as safety checks, are on my system now.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.