Remove PackageLicenseFile preventing PackageLicenseExpression from working - #4890
Conversation
…m working correctly
8c516c4 to
aeee3ca
Compare
commented
Feb 7, 2024
|
@microsoft-github-policy-service agree |
Co-authored-by: Amaury Levé <amaury.leve@gmail.com>
commented
Feb 7, 2024
|
With the proposed changes the package verification now fails. |
commented
Feb 7, 2024
|
Yes because there are less files included. Let me help you here. |
commented
Feb 7, 2024
All MIT packages no longer include MIT license file
commented
Feb 7, 2024
|
My assumption was that the license file should part of the package even though license expression would be MIT, this is why added explicit packaging. So should the checks just be changed to have one file less as expected count? |
| @@ -17,18 +17,18 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem | |||
| function Verify-Nuget-Packages { | |||
| Write-Host "Starting Verify-Nuget-Packages." | |||
| $expectedNumOfFiles = @{ | |||
There was a problem hiding this comment.
For all packages using MIT license, reduce count by 1 as license file is no longer present.
commented
Feb 7, 2024
File was added explicitly because VSTest was only moved to our common build infra recently and there are still reminicense of the past that we missed.
Correct! I did it and checked locally that build was good. -- Thanks for the contribution Marko Lahma (@lahma)! |
commented
Feb 13, 2024
|
Hum that's weird. I am pretty busy until Thursday so I will only be able to investigate and ensure this gets merged then. Sorry for the delay! |
commented
Feb 15, 2024
|
Still working out what's the issue. |
commented
Feb 16, 2024
|
Ok so that was just the test infra being super flaky. Thank you for the work here Marko Lahma (@lahma)! |

Description
Removing the
PackageLicenseFileallowsPackageLicenseExpressionto work correctly. Adding explicit packaging instructions to nuspec to keep the MIT license as part of packages.Checking artifacts from
.\build.cmd -packBefore
After
Related issue
fixes #4816