[Nix#9693] nix-channel --list-generations returns no output #75

Open
opened 2024-03-16 06:44:46 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#9693

Describe the bug

Nix 2.17 added a --list-generations command to nix-channel.

Unfortunately, it doesn't work. It just returns no output, even though I have 16 generations.

Steps To Reproduce

  1. No output:
    $ nix-channel --list-generations
    $
    
  2. However, there are generations:
    $ nix-env --profile /nix/var/nix/profiles/per-user/$USER/channels --list-generations
      1   2022-04-19 10:42:28   
      2   2022-04-19 10:47:08   
      3   2022-04-19 10:59:57   
      4   2022-04-19 23:52:40   
      5   2022-04-19 23:54:18   
      6   2022-04-19 23:55:15   
      7   2022-04-20 19:16:37   
      8   2022-06-15 18:25:01   
      9   2022-11-11 10:12:29   
     10   2022-11-11 15:16:52   
     11   2023-01-13 09:36:18   
     12   2023-01-13 09:37:23   
     13   2023-01-23 15:58:01   
     14   2023-03-13 13:58:38   
     15   2023-04-24 21:24:25   
     16   2023-06-01 19:24:09   (current)
    

Expected behavior

I expect the output of nix-channel --list-generations to be the same as nix-env --profile /nix/var/nix/profiles/per-user/$USER/channels --list-generations, like the docs say.

nix-env --version output

nix-env (Nix) 2.18.1

Additional context

I also tested with 2.17 from github:NixOS/nixpkgs/bd645e8668ec6612439a9ee7e71f7eac4099d4f6 (current unstable at the time of writing), and the result was the same. It seems this feature never worked.

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/9693 **Describe the bug** [Nix 2.17](https://nixos.org/manual/nix/unstable/release-notes/rl-2.17) added a `--list-generations` command to [`nix-channel`](https://nixos.org/manual/nix/unstable/command-ref/nix-channel). Unfortunately, it doesn't work. It just returns no output, even though I have 16 generations. **Steps To Reproduce** 1. No output: ``` $ nix-channel --list-generations $ ``` 2. However, there are generations: ``` $ nix-env --profile /nix/var/nix/profiles/per-user/$USER/channels --list-generations 1 2022-04-19 10:42:28 2 2022-04-19 10:47:08 3 2022-04-19 10:59:57 4 2022-04-19 23:52:40 5 2022-04-19 23:54:18 6 2022-04-19 23:55:15 7 2022-04-20 19:16:37 8 2022-06-15 18:25:01 9 2022-11-11 10:12:29 10 2022-11-11 15:16:52 11 2023-01-13 09:36:18 12 2023-01-13 09:37:23 13 2023-01-23 15:58:01 14 2023-03-13 13:58:38 15 2023-04-24 21:24:25 16 2023-06-01 19:24:09 (current) ``` **Expected behavior** I expect the output of `nix-channel --list-generations` to be the same as `nix-env --profile /nix/var/nix/profiles/per-user/$USER/channels --list-generations`, like the docs say. **`nix-env --version` output** ``` nix-env (Nix) 2.18.1 ``` **Additional context** I also tested with 2.17 from `github:NixOS/nixpkgs/bd645e8668ec6612439a9ee7e71f7eac4099d4f6` (current unstable at the time of writing), and the result was the same. It seems this feature never worked. **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
bug
imported
labels 2024-03-16 06:44:46 +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#75
No description provided.