Skip to content

Error with directory symlink: Unexpected file kind "S_DIR" #9873

@emillon

Description

@emillon

Hi,

When a directory target contains a directory symlink (symlink whose target is a directory), the following error happens:

  Error: Error trying to read targets after a rule was run:
  - d/b: Unexpected file kind "S_DIR" (directory)
  [1]

This can be found when building ocamlbuild through pkg rules, since its source tree contains such symlinks.

I bisected that to b1c339b in #9407 (@rleshchinskiy).

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions