Skip to content

Hint: Recursive traversal of subdirectories was not enabled for this build #536

@talex5

Description

@talex5

Every time a mirage build fails, we print this hint to the user:

Command exited with code 2.
Hint: Recursive traversal of subdirectories was not enabled for this build,
  as the working directory does not look like an ocamlbuild project (no
  '_tags' or 'myocamlbuild.ml' file). If you have modules in subdirectories,
  you should add the option "-r" or create an empty '_tags' file.

  To enable recursive traversal for some subdirectories only, you can use the
  following '_tags' file:

      true: -traverse
      <dir1> or <dir2>: traverse

I think we've got used to ignoring this, but for new users it must be confusing. We should find a way to suppress this message.

Perhaps mirage could generate an empty _tags file if there isn't one already?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions