Skip to content

Commit

Permalink
[ArPow] Delete optional files under non-open source licenses
Browse files Browse the repository at this point in the history
These files are not required as part of source-build, and are under
non-free licenses. Delete them when building the source-build tarball.

Fixes: dotnet/source-build#2359
  • Loading branch information
omajid committed Oct 25, 2021
1 parent 7828a7f commit 6de9c8d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,20 @@
</ItemGroup>

<Delete Files="@(TarballSrcBinaryToRemove)" />

<!-- We have some not-strictly-required files that are under non-open source licenses.
See https://github.com/dotnet/source-build/issues/2359.
Remove them. -->
<ItemGroup>
<TarballSrcNonOpenSourceFiles Include="$(TarballSourceDir)**\humanizer\samples\**\*.js" />
<TarballSrcNonOpenSourceFiles Include="$(TarballSourceDir)**\*nuget-client.*\**\EndToEnd\**\jquery-validation-unobtrusive\*.js" />
<TarballSrcNonOpenSourceFiles Include="$(TarballSourceDir)**\*nuget-client.*\**\EndToEnd\**\jquery-validation-unobtrusive\.bower.json" />
<TarballSrcNonOpenSourceFiles Include="$(TarballSourceDir)**\*aspnetcore.*\**\samples\**\jquery-validation-unobtrusive\.bower.json" />
<TarballSrcNonOpenSourceFiles Include="$(TarballSourceDir)**\*aspnetcore.*\**\samples\**\jquery-validation-unobtrusive\*.js" />
</ItemGroup>

<Message Importance="High" Text="Deleting files with questionable licenses: @(TarballSrcNonOpenSourceFiles, ' ')" />
<Delete Files="@(TarballSrcNonOpenSourceFiles)" />
</Target>

<Target Name="RestoreTextOnlyPackages">
Expand Down

0 comments on commit 6de9c8d

Please sign in to comment.