From e99923fc8bc2a00ec93730f2c4daf3c0b41f1dbe Mon Sep 17 00:00:00 2001 From: Todd Resudek Date: Tue, 11 Jun 2024 14:16:22 -0600 Subject: [PATCH] Updates information on the requireed licenses (#1042) --- lib/mix/tasks/hex.build.ex | 2 +- test/mix/tasks/hex.build_test.exs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mix/tasks/hex.build.ex b/lib/mix/tasks/hex.build.ex index 00e91c80..49d4cfc7 100644 --- a/lib/mix/tasks/hex.build.ex +++ b/lib/mix/tasks/hex.build.ex @@ -162,7 +162,7 @@ defmodule Mix.Tasks.Hex.Build do message = [ "The following licenses are not recognized by SPDX:\n", Enum.map(invalid_licenses, &" * #{&1}\n"), - "\nConsider using licenses from https://spdx.org/licenses" + "\nValid license identifiers are available from https://spdx.org/licenses" ] Hex.Shell.warn(message) diff --git a/test/mix/tasks/hex.build_test.exs b/test/mix/tasks/hex.build_test.exs index 3d7482c2..ef1c90e8 100644 --- a/test/mix/tasks/hex.build_test.exs +++ b/test/mix/tasks/hex.build_test.exs @@ -57,7 +57,7 @@ defmodule Mix.Tasks.Hex.BuildTest do assert_received {:mix_shell, :info, [ - "\e[33mThe following licenses are not recognized by SPDX:\n * CustomLicense\n\nConsider using licenses from https://spdx.org/licenses\e[0m" + "\e[33mThe following licenses are not recognized by SPDX:\n * CustomLicense\n\nValid license identifiers are available from https://spdx.org/licenses\e[0m" ]} assert package_created?("release_invalid_licenses-0.0.1") @@ -77,7 +77,7 @@ defmodule Mix.Tasks.Hex.BuildTest do refute_received {:mix_shell, :info, [ - "\e[33m\nYou have chosen 1 or more licenses that are not recognized by SPDX\nConsider using a license from https://spdx.org/licenses/\n\e[0m" + "\e[33mThe following licenses are not recognized by SPDX:\n * CustomLicense\n\nValid license identifiers are available from https://spdx.org/licenses\e[0m" ]} assert package_created?("release_repo_invalid_licenses-0.0.1")