You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't combine PackageLicenseExpression and PackageLicenseFile (only use PackageLicenseExpression for MIT licensed packages) #4816
We are currently adapting a package approval workflow, where packages are approved or blocked based on certain criteria. One very important criterion is the package's license. There is a list of approved licenses (like MIT, Apache, BSD, ...) and a list of licenses that can not be used (like GPL).
Although the Microsoft.Testplatform Nuget packages are under MIT license, it's hard to auto-approve them, because they use an embedded license file instead of an SPDX tag (https://spdx.github.io/spdx-spec/v2-draft/SPDX-license-list/). As a result, the license does not show up in the package's metadata.
The reason for this might be that Directory.Build.props has both a <PackageLicenseExpression>and a <PackageLicenseFile> property (and an additional <PackageLicenseFullPath> property):
However, nuspec supports only one or the other, but not both at the same time. It seems that the <PackageLicenseExpression> property is omitted during the build process.
I would expect the corresponding nuspec files within the Nuget packages to contain a line like <license type="expression">MIT</license> and tools to be able to display "MIT" as the license of those packages.
Actual behavior
The nuspec file contains the line <license type="file">LICENSE_MIT.txt</license> and tools (including nuget.org) are not able to determine the license from that.
Unfortunately, I don't have any experience with the Arcade SDK at all. I can't say for sure that the lines I pointed at in my post are ultimately responsible for the effect or what the effect of removing line 73 (and potentially line 74) would be. I also can't build this repository and verify the effect of any changes without getting into the Acrcade build infrastructure first, and I don't feel comfortable submitting a PR that I haven't tested myself.
Thus, I think someone with some actual experience with this repo should create a PR for this.
I also can't build this repository and verify the effect of any changes without getting into the Acrcade build infrastructure first,
You can run .\build.cmd -pack in the main folder, and you will find the packages in artifacts\packages folder. You don't need to install anything special to get into "arcade" mode.
Thanks Marko Lahma (@lahma)! And sorry, it's alread been 3 weeks and I didn't handle it... I have been really busy with many other requests and releases.
Activity
nohwnd commentedon Jan 18, 2024
This is probably because until recently this package was not under MIT, would you consider creating a PR to fix this?
szimmer-dap commentedon Jan 18, 2024
Unfortunately, I don't have any experience with the Arcade SDK at all. I can't say for sure that the lines I pointed at in my post are ultimately responsible for the effect or what the effect of removing line 73 (and potentially line 74) would be. I also can't build this repository and verify the effect of any changes without getting into the Acrcade build infrastructure first, and I don't feel comfortable submitting a PR that I haven't tested myself.
Thus, I think someone with some actual experience with this repo should create a PR for this.
nohwnd commentedon Jan 18, 2024
You can run
.\build.cmd -packin the main folder, and you will find the packages in artifacts\packages folder. You don't need to install anything special to get into "arcade" mode.Evangelink commentedon Jan 19, 2024
Self-assigning, I will have a look next week.
lahma commentedon Feb 7, 2024
Created #4890 to fix the issue.
Evangelink commentedon Feb 7, 2024
Thanks Marko Lahma (@lahma)! And sorry, it's alread been 3 weeks and I didn't handle it... I have been really busy with many other requests and releases.
Remove PackageLicenseFile as only PackageLicenseFile or PackageLicens…
Add PackageLicenseExpression (#1578)