[Nix#5977] :b can be interrupted only once in nix repl #296

Closed
opened 2024-05-10 05:31:00 +00:00 by jade · 0 comments
Owner

Upstream-Issue: NixOS/nix#5977

Here is the reproducer session:

$ nix repl '<nixpkgs>'
Welcome to Nix 2.6.0pre20211217_6e6e998. Type :? for help.

Loading '<nixpkgs>'...
Added 15734 variables.

nix-repl> :b runCommand "foo" {} "sleep 30"
error: interrupted by the user
[1/0/1 built] building foo

nix-repl> :b runCommand "foo" {} "sleep 30"
[1/0/1 built] building foo^C^C^C^C

What happens here:

  • first I run :b runCommand "foo" {} "sleep 30" and press Ctrl-C 5 seconds after first start. It gets interrupted as expected.
  • then I run :b runCommand "foo" {} "sleep 30" second time and press Ctrl-C 5 seconds after first start. But it does not stop.

I think it's a regression.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/5977 Here is the reproducer session: ``` $ nix repl '<nixpkgs>' Welcome to Nix 2.6.0pre20211217_6e6e998. Type :? for help. Loading '<nixpkgs>'... Added 15734 variables. nix-repl> :b runCommand "foo" {} "sleep 30" error: interrupted by the user [1/0/1 built] building foo nix-repl> :b runCommand "foo" {} "sleep 30" [1/0/1 built] building foo^C^C^C^C ``` What happens here: - first I run `:b runCommand "foo" {} "sleep 30"` and press `Ctrl-C` 5 seconds after first start. It gets interrupted as expected. - then I run `:b runCommand "foo" {} "sleep 30"` second time and press `Ctrl-C` 5 seconds after first start. But it does not stop. I think it's a regression.
jade added the
bug
imported
labels 2024-05-10 05:31:00 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#296
No description provided.