-
Notifications
You must be signed in to change notification settings - Fork 17
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
JSII Breaks on non SPDX License #1775
Comments
Hi @henrysachs, thanks for reporting this. As a workaround (albeit somewhat nasty), you can do: project.package.addField('license', 'UNLICENSED'); To get past jsii compilation, and then rewrite the |
Would it be okay to contribute code to also check if the license string starts with LicenseRef implying that its a non spdx license? |
@henrysachs mm just to double check though, does SPDX say the |
@iliapolo as I understood it LicenseRef is only used for nonspdx licenses. But maybe I read that spdx document wrong |
I would read a user defined license reference denoted by the LicenseRef-[idString] As "non spdx" I think user defined means not defined by spdx in this context |
Describe the bug
Hi there,
I was trying to set a custom License in my package.json like this: https://docs.npmjs.com/cli/v9/configuring-npm/package-json#license
Expected Behavior
The best for me would be to set non-SPDX licenses like "LicenseRef-MyCoolLicense" as spdx describes here: https://spdx.github.io/spdx-spec/v2-draft/SPDX-license-expressions/
Current Behavior
[ERROR] Invalid license identifier "SEE LICENSE IN LICENSE", see valid license identifiers at https://spdx.org/licenses/
Reproduction Steps
create a cdk construct library via projen
set the license like
run the build command
Possible Solution
No response
Additional Information/Context
No response
SDK version used
5.4.0
Environment details (OS name and version, etc.)
MacOs 15.3
Kind Regards
Henry
The text was updated successfully, but these errors were encountered: