Repository navigation
chore: full third-party licence notices - #19
Merged
Merged
Conversation
THIRD-PARTY-NOTICES.txt holds the licence files of every Rust crate the app compiles in and of Vite, whose module preload helper is built into the window. setup/notices.py generates it from the lock files, the installed npm packages and the cargo registry; --check fails while it does not cover what ships and runs in the CI test job with the generator's tests. The bundle carries the file, the shell's notices command reads it, and Help > About and Licences shows it. NOTICE.md stays the human list.
Vendor the upstream licence texts (each with a SOURCE.txt naming the file and commit, or the SPDX text it was reconstructed from) under setup/licence_texts and have setup/notices.py use them for the 33 crates whose published package carries no licence file. Regenerate THIRD-PARTY-NOTICES.txt.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--check, which needs only the lock files, and runs it in the CI test job together with 8 generator tests in setup/tests/test_notices.py. The tests cover crate reachability, the Vite licence cut, render and parse with shared texts, and missing, stale and empty sections.noticescommand (src-tauri/src/notices.rs) and a Help > About and Licences pane that loads the text on demand as plain text; the dev engine bridge answers the same command.Tests
How to ship