Skip to content

Commit 71ffa02

Browse files
authored
Include coreclr-tools in source-built archive (dotnet#1369)
* Include coreclr-tools in source-built archive * Add add'l pkgs to delete when generating tarball * Sort additional prebuilts to delete text file * Report all disallowed prebuilts on tarball creation
1 parent feb9d91 commit 71ffa02

File tree

3 files changed

+44
-26
lines changed

3 files changed

+44
-26
lines changed

build-source-tarball.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,16 +312,20 @@ done < $SCRIPT_ROOT/support/additional-prebuilts-to-delete.txt
312312

313313
if [ $SKIP_PREBUILT_ENFORCEMENT -ne 1 ]; then
314314
echo 'Checking for extra prebuilts...'
315+
error_encountered=false
315316
for package in `ls -A $TARBALL_ROOT/packages/prebuilt`
316317
do
317318
if grep -q "$package" $SCRIPT_ROOT/support/allowed-prebuilts.txt; then
318319
echo "Allowing prebuilt $package"
319320
else
320321
echo "ERROR: $package is not in the allowed prebuilts list ($SCRIPT_ROOT/support/allowed-prebuilts.txt)"
321-
echo "Either remove this prebuilt, add it to the known extras list ($SCRIPT_ROOT/support/additional-prebuilts-to-delete.txt) or add it to the allowed prebuilts list."
322-
exit 1
322+
error_encountered=true
323323
fi
324324
done
325+
if [ "$error_encountered" = "true" ]; then
326+
echo "Either remove this prebuilt, add it to the known extras list ($SCRIPT_ROOT/support/additional-prebuilts-to-delete.txt) or add it to the allowed prebuilts list."
327+
exit 1
328+
fi
325329
fi
326330

327331
echo 'Removing source-built, previously source-built packages and reference packages from il pkg src...'

src/package-source-build/package.proj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@
66
<Target Name="Pack">
77
<!-- Copy PVP to packages dir in order to package them together -->
88
<Copy SourceFiles="$(IncludedPackageVersionPropsFile)" DestinationFiles="$(SourceBuiltPackagesPath)PackageVersions.props" />
9+
10+
<!-- Copy coreclr tools to packages dir to include it in the source-built tarball as well -->
11+
<ItemGroup>
12+
<CoreClrToolsFiles Include="$(ToolPackageExtractDir)coreclr-tools/*" />
13+
</ItemGroup>
14+
<Copy SourceFiles="@(CoreClrToolsFiles)" DestinationFolder="$(SourceBuiltPackagesPath)coreclr-tools" />
15+
916
<PropertyGroup>
1017
<SourceBuiltTarballName>$(OutputPath)$(SourceBuiltArtifactsTarballName).$(VersionPrefix)-$(VersionSuffix).tar.gz</SourceBuiltTarballName>
1118
</PropertyGroup>
1219

13-
<Exec Command="tar --numeric-owner -czf $(SourceBuiltTarballName) *.nupkg *.props" WorkingDirectory="$(SourceBuiltPackagesPath)" />
20+
<Exec Command="tar --numeric-owner -czf $(SourceBuiltTarballName) *.nupkg *.props coreclr-tools/*" WorkingDirectory="$(SourceBuiltPackagesPath)" />
1421

1522
<Message Importance="High" Text="Packaged source-built artifacts to $(SourceBuiltTarballName)" />
1623
</Target>
Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
11
# this is a list of packages that end up in the tarball's prebuilts folder but are not actually needed.
22
# this is typically because part of the build are turned off for DotNetBuildOffline but not DotNetBuildFromSource.
3-
microsoft.dotnet.arcade.sdk.*.nupkg
3+
dotnet-dev-certs.3.0.0-rc2.19465.2.nupkg
4+
dotnet-user-secrets.3.0.0-rc2.19465.2.nupkg
5+
dotnet-watch.3.0.0-rc2.19465.2.nupkg
6+
microsoft.aspnetcore.analyzers.3.0.0-rc2.19465.2.nupkg
7+
microsoft.aspnetcore.developercertificates.xplat.3.0.0-rc2.19465.2.nupkg
8+
microsoft.aspnetcore.mvc.analyzers.3.0.0-rc2.19465.2.nupkg
9+
microsoft.aspnetcore.mvc.api.analyzers.3.0.0-rc2.19465.2.nupkg
10+
microsoft.codeanalysis.analyzers.2.6.1.nupkg
11+
microsoft.codeanalysis.common.2.9.0.nupkg
12+
microsoft.codeanalysis.csharp.2.9.0.nupkg
413
microsoft.diasymreader.pdb2pdb.*.nupkg
14+
microsoft.dotnet.arcade.sdk.*.nupkg
15+
microsoft.dotnet.genapi.*.nupkg
516
microsoft.dotnet.signtool.*.nupkg
6-
sn.1.0.0.nupkg
7-
vswhere.2.6.7.nupkg
8-
system.text.encoding.codepages.4.3.0.nupkg
9-
system.text.encoding.codepages.4.5.1.nupkg
10-
system.threading.tasks.dataflow.4.5.24.nupkg
17+
microsoft.net.compilers.toolset.*.nupkg
18+
microsoft.netcore.app.host.linux-x64.3.0.0.nupkg
19+
microsoft.visualstudio.setup.configuration.interop.1.16.30.nupkg
1120
runtime.*.runtime.native.system.security.cryptography.apple.*.nupkg
1221
runtime.*.runtime.native.system.security.cryptography.openssl.*.nupkg
13-
system.text.json.1.0.0.nupkg
14-
system.xml.xpath.4.3.0.nupkg
15-
microsoft.codeanalysis.csharp.2.9.0.nupkg
16-
system.xml.xpath.xdocument.4.3.0.nupkg
17-
microsoft.codeanalysis.common.2.9.0.nupkg
18-
microsoft.codeanalysis.analyzers.2.6.1.nupkg
19-
system.valuetuple.4.3.0.nupkg
20-
microsoft.dotnet.genapi.*.nupkg
21-
system.runtime.compilerservices.unsafe.4.5.0.nupkg
2222
runtime.linux-x64.microsoft.netcore.dotnetapphost.*.nupkg
23-
runtime.linux-x64.microsoft.netcore.dotnethostresolver.*.nupkg
24-
runtime.linux-x64.microsoft.netcore.dotnethostpolicy.*.nupkg
2523
runtime.linux-x64.microsoft.netcore.dotnethost.*.nupkg
26-
microsoft.netcore.app.host.linux-x64.3.0.0.nupkg
27-
system.composition.runtime.1.0.31.nupkg
24+
runtime.linux-x64.microsoft.netcore.dotnethostpolicy.*.nupkg
25+
runtime.linux-x64.microsoft.netcore.dotnethostresolver.*.nupkg
26+
sn.1.0.0.nupkg
27+
system.composition.attributedmodel.1.0.31.nupkg
28+
system.composition.convention.1.0.31.nupkg
2829
system.composition.hosting.1.0.31.nupkg
30+
system.composition.runtime.1.0.31.nupkg
2931
system.composition.typedparts.1.0.31.nupkg
30-
system.composition.convention.1.0.31.nupkg
31-
system.composition.attributedmodel.1.0.31.nupkg
32-
microsoft.visualstudio.setup.configuration.interop.1.16.30.nupkg
33-
microsoft.net.compilers.toolset.*.nupkg
32+
system.runtime.compilerservices.unsafe.4.5.0.nupkg
33+
system.text.encoding.codepages.4.3.0.nupkg
34+
system.text.encoding.codepages.4.5.1.nupkg
35+
system.text.json.1.0.0.nupkg
36+
system.threading.tasks.dataflow.4.5.24.nupkg
37+
system.valuetuple.4.3.0.nupkg
38+
system.xml.xpath.4.3.0.nupkg
39+
system.xml.xpath.xdocument.4.3.0.nupkg
40+
vswhere.2.6.7.nupkg

0 commit comments

Comments
 (0)