Skip to content

Commit 92e46b5

Browse files
authored
Remove obsolete arcade-services submodule and upgrade to netcoreapp3.0 version of Darc. (#1368)
* Remove arcade-services submodule. * Upgrade Darc to netcoreapp3.0 version and remove workaround. * Remove a couple more references I missed.
1 parent dac835d commit 92e46b5

File tree

7 files changed

+5
-19
lines changed

7 files changed

+5
-19
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "tools-local/arcade-services"]
2-
path = tools-local/arcade-services
3-
url = https://github.com/dotnet/arcade-services

DarcVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0-beta.19515.3
1+
1.1.0-beta.19568.2

build-source-tarball.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fi
8080
echo "Found bootstrap SDK $SDK_VERSION"
8181
CLI_PATH="$SCRIPT_ROOT/.dotnet"
8282
DarcVersion=$(cat $SCRIPT_ROOT/DarcVersion.txt)
83-
DARC_DLL="$CLI_PATH/tools/.store/microsoft.dotnet.darc/$DarcVersion/microsoft.dotnet.darc/$DarcVersion/tools/netcoreapp2.1/any/Microsoft.DotNet.Darc.dll"
83+
DARC_DLL="$CLI_PATH/tools/.store/microsoft.dotnet.darc/$DarcVersion/microsoft.dotnet.darc/$DarcVersion/tools/netcoreapp3.0/any/Microsoft.DotNet.Darc.dll"
8484

8585
if [ $SKIP_BUILD -ne 1 ]; then
8686

@@ -148,15 +148,11 @@ git submodule foreach --quiet --recursive '
148148
# Now re-uberclone into the tarball src directory. Since we reuse the .gitdirs, this shouldn't hit the network at all.
149149
ignored_repos="https://dev.azure.com/dnceng/internal/_git/dotnet-optimization;https://dev.azure.com/devdiv/DevDiv/_git/DotNet-Trusted;https://devdiv.visualstudio.com/DevDiv/_git/DotNet-Trusted;https://[email protected]/dnceng/internal/_git/dotnet-optimization;https://dev.azure.com/dnceng/internal/_git/dotnet-core-setup;https://github.com/dotnet/source-build-reference-packages"
150150

151-
#export the LC_LIB_PATH for libgit2 so file as fedora fails to find it in the repodir
152-
export LD_LIBRARY_PATH=$CLI_PATH/tools/.store/microsoft.dotnet.darc/$DarcVersion/microsoft.dotnet.darc/$DarcVersion/tools/netcoreapp2.1/any/runtimes/rhel-x64/native/
153-
154151
"$CLI_PATH/dotnet" "$DARC_DLL" clone --repos-folder=$TARBALL_ROOT/src/ --git-dir-folder $SCRIPT_ROOT/.git/modules/src/ --include-toolset --ignore-repos "$ignored_repos" --azdev-pat bogus --github-pat bogus --depth 0 --debug
155152

156153
# now we don't need .git/modules/src or Darc anymore
157154
if [ $MINIMIZE_DISK_USAGE -eq 1 ]; then
158155
rm -rf "$SCRIPT_ROOT/.git/modules/src"
159-
rm -rf $SCRIPT_ROOT/tools-local/arcade-services
160156
fi
161157

162158
# then delete the master copies - we only need the specific hashes
@@ -197,10 +193,7 @@ cp -r $SCRIPT_ROOT/patches $TARBALL_ROOT/
197193
cp -r $SCRIPT_ROOT/scripts $TARBALL_ROOT/
198194
cp -r $SCRIPT_ROOT/repos $TARBALL_ROOT/
199195
cp -r $SCRIPT_ROOT/tools-local $TARBALL_ROOT/
200-
rm -rf $TARBALL_ROOT/tools-local/arcade-services/
201-
rm -rf $TARBALL_ROOT/.dotnet/shared/2.1.0/
202196
rm -rf $TARBALL_ROOT/.dotnet/tools/
203-
rm -rf $TARBALL_ROOT/.dotnet/host/fxr/2.1.0/
204197
cp -r $SCRIPT_ROOT/bin/git-info $TARBALL_ROOT/
205198

206199
cp $SCRIPT_ROOT/support/tarball/build.sh $TARBALL_ROOT/build.sh

build.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ export NUGET_PACKAGES="$scriptroot/packages/restored/"
6969
set -x
7070
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
7171

72-
# runtime 2.1.0 required for darc
73-
"$scriptroot/eng/common/dotnet-install.sh" -runtime dotnet -version 2.1.0
74-
7572
if [ "$alternateTarget" == "true" ]; then
7673
CLIPATH="$scriptroot/.dotnet"
7774
SDKPATH="$CLIPATH/sdk/$SDK_VERSION"

dir.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<TaskDirectory>$(ToolsLocalDir)tasks/</TaskDirectory>
6161
<DarcInstallDir>$(DotNetCliToolDir)tools/</DarcInstallDir>
6262
<DarcVersion>$([System.IO.File]::ReadAllText('$(ProjectDir)DarcVersion.txt').Trim())</DarcVersion>
63-
<DarcDll>$(DotNetCliToolDir)tools/.store/microsoft.dotnet.darc/$(DarcVersion)/microsoft.dotnet.darc/$(DarcVersion)/tools/netcoreapp2.1/any/Microsoft.DotNet.Darc.dll</DarcDll>
63+
<DarcDll>$(DotNetCliToolDir)tools/.store/microsoft.dotnet.darc/$(DarcVersion)/microsoft.dotnet.darc/$(DarcVersion)/tools/netcoreapp3.0/any/Microsoft.DotNet.Darc.dll</DarcDll>
6464
<TasksBinDir>$(TaskDirectory)Microsoft.DotNet.SourceBuild.Tasks/bin/Debug/netstandard2.0/</TasksBinDir>
6565
<SourceBuildTasksAssembly>$(TasksBinDir)Microsoft.DotNet.SourceBuild.Tasks.dll</SourceBuildTasksAssembly>
6666
<XPlatTasksBinDir>$(TaskDirectory)Microsoft.DotNet.SourceBuild.Tasks.XPlat/bin/Debug/netstandard2.0/</XPlatTasksBinDir>

tools-local/arcade-services

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools-local/init-build.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@
145145
</Target>
146146

147147
<Target Name="AcquireDarc" Condition="'$(OfflineBuild)' != 'true'">
148-
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Building Darc." />
148+
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Installing Darc." />
149149
<Exec Command="$(ProjectDir)eng/common/darc-init.sh --darcversion $(DarcVersion) --toolpath $(DarcInstallDir)" />
150-
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Done building Darc." />
150+
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Done installing Darc." />
151151
</Target>
152152

153153
<Target Name="FetchSources" Condition="'$(OfflineBuild)' != 'true'" DependsOnTargets="AcquireDarc">

0 commit comments

Comments
 (0)