Skip to content

Add fsf-free and osi-approved options#250

Merged
kezhenxu94 merged 11 commits intoapache:mainfrom
pboling:feat/fsf-free-libre
Sep 14, 2025
Merged

Add fsf-free and osi-approved options#250
kezhenxu94 merged 11 commits intoapache:mainfrom
pboling:feat/fsf-free-libre

Conversation

@pboling
Copy link
Copy Markdown
Contributor

@pboling pboling commented Sep 14, 2025

Added new flags fsf-free and osi-approved, which when used will required licenses to be such, in order to be considered compatible.

It supports three flags, in addition to the global ones:

Flag name Short name Description
--weak-compatible -w Treat weak-compatible licenses as compatible during checks. Use with caution and manually confirm the usage conditions for such licenses are met.
--fsf-free -f Only consider licenses marked as FSF Free/Libre when determining compatibility. Non‑FSF‑free licenses are treated as incompatible.
--osi-approved -o Only consider OSI‑approved licenses when determining compatibility. Non‑OSI‑approved licenses are treated as incompatible.

Also, documented the Global flags:

Global CLI flags

The following flags are available for all commands:

Flag name Short name Description
--verbosity -v Set log level (debug, info, warn, error, fatal, panic). Default: info
--config -c Path to the configuration file. Default: .licenserc.yaml

@pboling pboling marked this pull request as draft September 14, 2025 12:27
@pboling pboling marked this pull request as ready for review September 14, 2025 12:29
@pboling pboling force-pushed the feat/fsf-free-libre branch from efe6078 to 476ed55 Compare September 14, 2025 12:35
kezhenxu94
kezhenxu94 previously approved these changes Sep 14, 2025
@pboling pboling marked this pull request as draft September 14, 2025 12:38
@pboling pboling marked this pull request as ready for review September 14, 2025 12:45
@wu-sheng wu-sheng added the enhancement New feature or request label Sep 14, 2025
@wu-sheng wu-sheng added this to the 0.8.0 milestone Sep 14, 2025
@kezhenxu94 kezhenxu94 merged commit 61275cc into apache:main Sep 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants