Skip to content

Better documentation for install stanza #1123

@wieczyk

Description

@wieczyk

I cannot understand documentation, it should contain more examples of stanzas.

My situation: I am getting an error:

wieczyk@tortilla:~/Repozytoria/Uczelnia/xic$ make
dune build
File "source/xic/dune", line 1, characters 0-115:
Error: I can't determine automatically which package this (install ...) stanza is for. I have the choice between these ones:
- xic (because of xic.opam)
- xif (because of xif.opam)
You need to add a (package ...) field in this (install ...) stanza
Makefile:6: recipe for target 'compile' failed
make: *** [compile] Error 1

...where I can see suggestion that I should add package field in the install stanza.

But I have the field in my dune file.

wieczyk@tortilla:~/Repozytoria/Uczelnia/xic$ cat source/xic/dune 
(executable 
    (name xic)
    (public_name xic)
    (install 
        (section bin)
        (package xic)
    )
)

Maybe I cannot understand documentation, but it should work ;/

Metadata

Metadata

Assignees

Labels

docsDocumentation improvements

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions