From 7621512958f3b03a7576919fdbccce4194c277f0 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Mon, 24 Jul 2023 15:05:41 +0100 Subject: [PATCH] Use SPDX license identifier (#5) Hit the following errors when publishing the role: ``` Error: [ERROR]: Galaxy import error message: Import Task "29818" failed: Invalid Publishing collection artifact '/home/runner/work/ansible-collection-linux/ansible-collection-linux/stackhpc-linux-1.0.0.tar.gz' to default https://galaxy.ansible.com/api/ Collection has been published to the Galaxy server default https://galaxy.ansible.com/api/ Waiting until Galaxy import task https://galaxy.ansible.com/api/v2/collection-imports/29818/ has completed collection metadata. Expecting 'license' to be a list of valid SPDX license identifiers, instead found invalid license identifiers: 'Apache2' in 'license' value ['Apache2']. For more info, visit https://spdx.org ERROR! Galaxy import process failed: Invalid collection metadata. Expecting 'license' to be a list of valid SPDX license identifiers, instead found invalid license identifiers: 'Apache2' in 'license' value ['Apache2']. For more info, visit https://spdx.org (Code: None) ``` See: - https://github.com/stackhpc/ansible-collection-linux/actions/runs/5609573688/job/15197473526 - https://spdx.org/licenses/ --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index 7cbbbf5..062e9d8 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -6,7 +6,7 @@ authors: - Mark Goddard description: Ansible collection for configuring linux based operating systems license: - - Apache2 + - "Apache-2.0" tags: - linux dependencies: {}