From 2f8558be40b0525e09d6d249ca360cf61202cd60 Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Sat, 6 Feb 2021 16:55:48 +0100 Subject: [PATCH] user-changes.md: document SPDX license expressions (#683) * user-changes.md: document SPDX license expressions * Typo * Another typo Co-authored-by: Alejandro R. Mosteo --- doc/user-changes.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/user-changes.md b/doc/user-changes.md index c702c921..ee1cfdc3 100644 --- a/doc/user-changes.md +++ b/doc/user-changes.md @@ -59,6 +59,23 @@ an index containing unknown values. This error, either in indexes or a local manifest, can be downgraded to a warning with `--force`. +### Switch manifest `licenses` field to SPDX expressions + +PR [#629](https://github.com/alire-project/alire/pull/629). + +The `licenses` in crate manifests now expects a valid [SPDX +expression](https://spdx.org/licenses/). Custom license identifiers are +accepted with the format: `custom-[0-9a-zA-Z.-]+`. + +Example: +```toml +licenses = "MIT OR custom-my-own-license" +``` + +For the `1.x` release, usage of the previous `licenses` format is obsolete and +will trigger a warning. In future major releases this format will not be +accepted at all. + ### Custom editor command for `alr edit` PR [#611](https://github.com/alire-project/alire/pull/611). -- 2.39.5