Skip to content

NPV 109

Philip Taron edited this page Feb 16, 2026 · 1 revision

NPV-109: Shard is not a directory

Description

Each entry directly under pkgs/by-name/ (a "shard") must be a directory. Files at this level are not allowed.

Error message

{relative_shard_path}: This is a file, but it should be a directory.

Example

If pkgs/by-name/fo is a file instead of a directory:

pkgs/by-name/fo: This is a file, but it should be a directory.

How to fix

Remove the file and create a directory in its place. Shard directories contain package directories (e.g., pkgs/by-name/fo/foo/).

Clone this wiki locally