Skip to content

dune init exec foo src --lib=lwt.unix fails #3443

@bikallem

Description

@bikallem

Expected Behavior

dune init exec foo src --lib=lwt.unix to succeed and create a dune file and src folder.

Actual Behavior

Error below.

dune: option `--libs': invalid element in list (`lwt.unix'): invalid
      component name `lwt.unix'
      Library names must be non-empty and composed only of the
      following
      characters: 'A'..'Z', 'a'..'z', '_' or '0'..'9'.
Usage: dune init [OPTION]... INIT_KIND NAME [PATH]
Try `dune init --help' or `dune --help' for more information.

Reproduction

Any lib name with that has characters other than 'A - Z', 'a - z', '_', '0-9'.

dune init exec foo src --lib=lwt.unix

Specifications

  • Version of dune (output of dune --version): 2.5.0
  • Version of ocaml (output of ocamlc --version): 4.10.0
  • Operating system (distribution and version): red hat linux 8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions