Skip to content

"dune init project" doesn't create a dune project file, creates unnecessary _build file #5429

@yminsky

Description

@yminsky

Here's the reproduction:

[hello_test]$ dune init proj hello --ppx ppx_inline_test --inline-tests
Success: initialized project component named hello
[hello_test]$ tree
.
├── _build
│   └── log
└── hello
    ├── bin
    │   ├── dune
    │   └── main.ml
    ├── hello.opam
    ├── lib
    │   └── dune
    └── test
        ├── dune
        └── hello.ml

5 directories, 7 files

The project simply won't build with the dune-project file. And if you put the dune-project file next to the hello.opam file, the _build will be generated automatically when you first start to build, and it will be generated one level down in the hierarchy, in the "hello" directory.

Specifications

  • Version of dune (output of dune --version): 2.9.3
  • Operating system (distribution and version): Fedora release 35 (Thirty Five)

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