Skip to content

NPV 126

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

NPV-126: Unresolvable symlink in package directory

Description

A symlink within a pkgs/by-name package directory cannot be resolved. The symlink target does not exist (dangling symlink).

Error message

{relative_package_dir}: Path {subpath} is a symlink which cannot be resolved: {io_error}.

Example

If pkgs/by-name/fo/foo/foo is a symlink pointing to a non-existent target:

pkgs/by-name/fo/foo: Path foo is a symlink which cannot be resolved: No such file or directory (os error 2).

How to fix

Either fix the symlink to point to a valid target, replace it with the actual file, or remove the dangling symlink.

Clone this wiki locally