Skip to content

Instantly share code, notes, and snippets.

@Jayman2000
Last active May 24, 2024 22:41
Show Gist options
  • Save Jayman2000/e351d80ecd8fa9be10b6fd32179f77ca to your computer and use it in GitHub Desktop.
Save Jayman2000/e351d80ecd8fa9be10b6fd32179f77ca to your computer and use it in GitHub Desktop.
Draft of a bug report for Nixpkgs: <https://github.com/NixOS/nixpkgs>

Describe the bug

If the git package is out-of-date and you run its update script, then the update script will print errors.

Steps To Reproduce

$ # This first command won’t be necessary once this commit makes it into master: f3692ef627883be00dd6c4b3a4d45d2c21af18b7
$ git switch staging
Already on 'staging'
Your branch is up to date with 'origin/staging'.
$ last_git_update=93fa7170872d7638f7adf25dd3b526f918c16b1a
$ git revert --no-edit "$last_git_update"
Auto-merging pkgs/applications/version-management/git/default.nix
[staging be5dbe54ed8c] Revert "git: 2.44.1 -> 2.45.1"
 Date: Fri May 24 18:28:40 2024 -0400
 1 file changed, 2 insertions(+), 2 deletions(-)
$ nix-shell maintainers/scripts/update.nix --argstr package git

Going to be running update for following packages:
 - git-2.44.1

Press Enter key to continue...

Running update for:
 - git-2.44.1: UPDATING ...
 - git-2.44.1: ERROR

--- SHOWING ERROR LOG FOR git-2.44.1 ----------------------

grep: warning: stray \ before {
warning: could not open directory 'pkgs/applications/version-management/git-and-tools/git/': No such file or directory
fatal: pathspec '/home/jayman/Documents/Home/VC/Partially mine/nixpkgs/pkgs/applications/version-management/git-and-tools/git/default.nix' did not match any files


--- SHOWING ERROR LOG FOR git-2.44.1 ----------------------
The update script for git-2.44.1 failed with exit code 128
$ 

Expected behavior

The update script finishes without any errors.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Add a 👍 reaction to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment