feat: warn users about missing LICENSE#628
Conversation
joaomoreno
left a comment
There was a problem hiding this comment.
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
joaomoreno
left a comment
There was a problem hiding this comment.
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 packagewithout aLICENSEshould generate a warning message.