-
Hi, I'm trying to update the version of git-branchless in nixpkgs from 0.3.2 to 0.3.6 but I'm meeting some unexpected difficulties. For reference, the packaging script is shown below in
Can you please help me pass the tests?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hi @hmenke, thanks for your work in packaging git-branchless into Nix! Actually, if it's possible, we could add Nix as a target platform to check in CI, so that we can surface these errors earlier. I'll have more time to look later this week. From the error message, the cross-device errors seem to be happening when moving a file called The fix would be to generate the temp file on the same file system. Perhaps the tempfile library has an option for that. If not, we could write to a file under |
Beta Was this translation helpful? Give feedback.
Hi @hmenke, thanks for your work in packaging git-branchless into Nix! Actually, if it's possible, we could add Nix as a target platform to check in CI, so that we can surface these errors earlier.
I'll have more time to look later this week.
From the error message, the cross-device errors seem to be happening when moving a file called
rewritten-list
to.git/rebase-merge/
as part of the rebase process. The intention was to populate it atomically. It's created with a tempfile library, so most likely what's happening is that/tmp
(or whatever directory) is on another file system, so it can't actually be moved.The fix would be to generate the temp file on the same file system. Perhaps the t…