Directories referenced as file:// URLs not fetched successfully, with a surprising error message #582

Open
opened 2024-11-20 20:57:16 +00:00 by lheckemann · 0 comments
Member

Describe the bug / Steps To Reproduce

$ nix flake metadata file:///home/linus/scratch
error:
       … while fetching the input 'file:///home/linus/scratch'

       error: tarball 'file:///home/linus/scratch' contains an unexpected number of top-level files

This happens regardless of the contents of the given directory.

Expected behavior

The directory should be "fetched" successfully, or an error message explaining that file:// is only for tarballs should be produced.

nix --version output

nix (Lix, like Nix) 2.92.0-dev-pre20241111-8a90943

## Describe the bug / Steps To Reproduce ``` $ nix flake metadata file:///home/linus/scratch error: … while fetching the input 'file:///home/linus/scratch' error: tarball 'file:///home/linus/scratch' contains an unexpected number of top-level files ``` This happens regardless of the contents of the given directory. ## Expected behavior The directory should be "fetched" successfully, or an error message explaining that `file://` is only for tarballs should be produced. ## `nix --version` output nix (Lix, like Nix) 2.92.0-dev-pre20241111-8a90943
lheckemann added the
bug
Area/flakes
Area/fetching
labels 2024-11-20 20:58:17 +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#582
No description provided.