Merge branch 'check-license-fixes' into 'main'

Update check_licenses and add it to CI.

Closes #462

See merge request tpo/core/arti!559
This commit is contained in:
Ian Jackson 2022-06-02 13:59:35 +00:00
commit 6f96736278
2 changed files with 20 additions and 1 deletions

View File

@ -39,6 +39,8 @@ rust-latest:
- rustup show
- cargo clippy --all-features --all-targets -- -D warnings
- cargo fmt -- --check
- cp cargo-license $CARGO_HOME/bin/ || cargo install cargo-license
- ./maint/check_licenses
- cp cargo-audit $CARGO_HOME/bin/ || cargo install cargo-audit
- ./maint/cargo_audit
- cp $CARGO_HOME/bin/cargo-audit .
@ -51,6 +53,7 @@ rust-latest:
paths:
- cargo-audit
- cargo-sort
- cargo-license
artifacts:
paths:
- target/x86_64-unknown-linux-gnu/debug/arti

View File

@ -18,7 +18,23 @@ RECOGNIZED_LICENSES=(
# List of packages that don't list a license.
NO_LICENSE=(
fuchsia-cprng
# The license for "ring" is something like "ISC AND openssl AND
# ssleay AND MIT"; the openssl license is not up-to-date with
# modern openssl. It includes an advertising clause. :P
#
# See https://gitlab.torproject.org/tpo/core/arti/-/issues/493 for
# our related ticket.
ring
# License appears to be "Apache-2.0 OR MIT" but not so specified
# in file. (Its LICENSE file, as coped from the rest of icu4x, is
# more like "(Apache-2.0 OR MIT) AND Sort of (Unicode AND ICU) but
# only if we used that code."
#
# See https://github.com/unicode-org/icu4x/issues/1358 for their
# attempts to fix that.
tinystr
# License appears to be ISC.
webpki
)
containsElement () {