-
Notifications
You must be signed in to change notification settings - Fork 213
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
feat: warn users about missing LICENSE #628
feat: warn users about missing LICENSE #628
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have read through the README, but I don't know how I can set up dev environment to reporuce the case.
Yeah, the current steps seems to be broken. I've fixed those in main
.
2304ec7
to
47f8256
Compare
47f8256
to
90d6112
Compare
@joaomoreno I have resolved those issues you mentioned. Just a bit uncertain about the LICENSE name. Do you want me to extract that matching logic into a private method of |
Yeah I would store that into a private |
Done. You can refer to the |
261862a
to
cc205d4
Compare
Somehow, the last commit removed some brackets from the method |
Co-authored-by: João Moreno <mail@joaomoreno.com>
cc205d4
to
e92377b
Compare
ah, it is because of the dot in |
Fixed test [toVsixManifest] should automatically detect license files:
0c886f5
to
1f867a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few more commits on top.
Thanks! |
@joaomoreno No problem. I'd also be really happy if you can label this PR as |
I'm not sure how this is supposed to work, but if the license is already defined as a SPDX string in |
@lnicola The SPDX string only changes the licence file name to look for. It will always look for a license file. |
Motivation
Fixes #603
When the code fails to automatically detect a LICENSE file, it now warns the users if they want to continue.
Test Plan
Run
vsce package
without aLICENSE
should generate a warning message.