-
Notifications
You must be signed in to change notification settings - Fork 470
Error trying to give multiple licenses #6103
Copy link
Copy link
Closed
ocaml/opam-repository
#22317Description
Expected Behavior
https://dune.readthedocs.io/en/latest/dune-files.html?highlight=license#generate-opam-files-1 says:
(license <names>)- specifies the license of the project, ideally as an identifier from the SPDX License List. Multiple licenses may be specified.
Actual Behavior
I tried:
(license "ISC" "MIT") # Error: Too many argument for license
(license ("ISC" "MIT")) # Error: Atom or quoted string expected
(license "ISC")
(license "MIT") # Error: Field "license" is present too many times
The following is accepted by dune, but is rejected by opam-repository (see ocaml/opam-repository@d3ea851).
(license "(ISC AND MIT)")
It is possible to work around this using PKG.opam.template files.
Specifications
$ dune --version
3.4.1
$ ocamlc --version
5.0.0~alpha1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels