Bad error message for nix repl '<nixpkgs>' with repl-flake enabled: error: '<nixpkgs>' is not a valid URL #684

Open
opened 2025-02-20 17:29:46 +00:00 by jade · 0 comments
Owner
$ nix repl '<nixpkgs>'
Lix 2.93.0-dev-pre20250207-00a1afe
Type :? for help.
error: '<nixpkgs>' is not a valid URL

This is because <nixpkgs> is an invalid flake reference, but the diagnostic does not at all indicate that it was interpreted as a flake URL.

This will become worse if (more likely, when, since it is useful for consistency with the rest of the flake infested CLI) we ship repl-flake by default.

``` $ nix repl '<nixpkgs>' Lix 2.93.0-dev-pre20250207-00a1afe Type :? for help. error: '<nixpkgs>' is not a valid URL ``` This is because `<nixpkgs>` is an invalid flake reference, but the diagnostic does not at all indicate that it was interpreted as a flake URL. This will become worse if (more likely, *when*, since it is useful for consistency with the rest of the flake infested CLI) we ship repl-flake by default.
jade added this to the Error reporting project 2025-02-20 17:29:46 +00:00
jade changed title from nix repl --experimental-features 'nix-command flakes repl-flake' '<nixpkgs>' prints error: '<nixpkgs>' is not a valid URL to Bad error message for nix repl '<nixpkgs>' with repl-flake enabled: error: '<nixpkgs>' is not a valid URL 2025-02-20 17:31:16 +00:00
Sign in to join this conversation.
No milestone
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#684
No description provided.