Skip to content

Commit 56698b5

Browse files
committed
git-branchless: 0.9.0 -> 0.10.0 & fix build
1 parent 8d26e1d commit 56698b5

File tree

1 file changed

+32
-4
lines changed
  • pkgs/applications/version-management/git-branchless

1 file changed

+32
-4
lines changed

pkgs/applications/version-management/git-branchless/default.nix

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515

1616
rustPlatform.buildRustPackage rec {
1717
pname = "git-branchless";
18-
version = "0.9.0";
18+
version = "0.10.0";
1919

2020
src = fetchFromGitHub {
2121
owner = "arxanas";
2222
repo = "git-branchless";
2323
rev = "v${version}";
24-
hash = "sha256-4RRSffkAe0/8k4SNnlB1iiaW4gWFTuYXplVBj2aRIdU=";
24+
hash = "sha256-8uv+sZRr06K42hmxgjrKk6FDEngUhN/9epixRYKwE3U=";
2525
};
2626

27-
cargoHash = "sha256-Jg4d7tJXr2O1sEDdB/zk+7TPBZvgHlmW8mNiXozLKV8=";
27+
cargoHash = "sha256-AEEAHMKGVYcijA+Oget+maDZwsk/RGPhHQfiv+AT4v8=";
2828

2929
nativeBuildInputs = [ pkg-config ];
3030

@@ -48,11 +48,39 @@ rustPlatform.buildRustPackage rec {
4848
export TEST_GIT=${git}/bin/git
4949
export TEST_GIT_EXEC_PATH=$(${git}/bin/git --exec-path)
5050
'';
51-
# FIXME: these tests deadlock when run in the Nix sandbox
51+
52+
# Note that upstream has disabled CI tests for git>=2.46
53+
# See: https://github.com/arxanas/git-branchless/issues/1416
54+
# https://github.com/arxanas/git-branchless/pull/1417
5255
checkFlags = [
56+
# FIXME: these tests deadlock when run in the Nix sandbox
5357
"--skip=test_switch_pty"
5458
"--skip=test_next_ambiguous_interactive"
5559
"--skip=test_switch_auto_switch_interactive"
60+
# harmless failures, also appear in upstream CI
61+
# see e.g. https://github.com/user-attachments/files/17016948/git-branchless-job-logs.txt
62+
"--skip=test_amend_undo" # git-branchless#1345
63+
# harmless, extra: "branchless: processing 1 update: ref HEAD"
64+
"--skip=test_symbolic_transaction_ref"
65+
"--skip=test_move_branch_on_merge_conflict_resolution"
66+
"--skip=test_move_branches_after_move"
67+
"--skip=test_move_delete_checked_out_branch"
68+
"--skip=test_move_no_reapply_squashed_commits"
69+
"--skip=test_move_orphaned_root"
70+
"--skip=test_restore_snapshot_basic"
71+
"--skip=test_restore_snapshot_delete_file_only_in_index"
72+
"--skip=test_restore_snapshot_deleted_files"
73+
"--skip=test_sync_basic"
74+
"--skip=test_sync_no_delete_main_branch"
75+
# probably harmless, without the extra "Check out from ... to ..." step
76+
"--skip=test_undo_doesnt_make_working_dir_dirty"
77+
"--skip=test_undo_move_refs"
78+
"--skip=test_undo_noninteractive"
79+
# probably harmless, different EventCursor::event_id
80+
"--skip=test_undo_hide"
81+
];
82+
cargoTestFlags = [
83+
"--no-fail-fast" # make post-mortem easier
5684
];
5785

5886
meta = with lib; {

0 commit comments

Comments
 (0)