Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates information on the required licenses #1042

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mix/tasks/hex.build.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions test/mix/tasks/hex.build_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
Loading