Skip to content

NPV 110

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

NPV-110: Invalid shard directory name

Description

Shard directories under pkgs/by-name/ must have names that are at most 2 ASCII characters long, consisting only of lowercase letters (a-z), digits (0-9), hyphens (-), or underscores (_).

Error message

{relative_shard_path}: Invalid directory name "{shard_name}", must be at most 2 ASCII characters consisting of a-z, 0-9, "-" or "_".

Example

If pkgs/by-name/A exists (uppercase is not allowed):

pkgs/by-name/A: Invalid directory name "A", must be at most 2 ASCII characters consisting of a-z, 0-9, "-" or "_".

How to fix

Rename the shard directory to use only valid characters. Shard names are derived from the first two characters of the package name, lowercased. For example, package Foo belongs in shard fo.

Clone this wiki locally