You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails, because fetchpatch reorganises diffs in a wrong way. I have 1 commit that creates a default.nix file, and 1 that changes is. Patching using https://github.com/NixOS/nixpkgs/pull/18419.patch works because changes have same order. Patching using fetchpatch fails, because first diff is changing default.nix, and next is creating default.nix.
Not sure whether this is a bug or a normal condition, because comment explicitly says that
This is primarily useful for dynamically generated patches,
such as GitHub's
Issue description
I'm trying to apply patch https://github.com/NixOS/nixpkgs/pull/18419.patch to my local nixpkgs with
fetchpatch
.It fails, because fetchpatch reorganises diffs in a wrong way. I have 1 commit that creates a default.nix file, and 1 that changes is. Patching using
https://github.com/NixOS/nixpkgs/pull/18419.patch
works because changes have same order. Patching usingfetchpatch
fails, because first diff is changing default.nix, and next is creating default.nix.Not sure whether this is a bug or a normal condition, because comment explicitly says that
ping @vcunat
Steps to reproduce
The text was updated successfully, but these errors were encountered: