Skip to content

Error trying to give multiple licenses #6103

@talex5

Description

@talex5

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

Metadata

Metadata

Assignees

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