Skip to content

Commit 4f06e13

Browse files
[master] Update dependencies from dotnet/arcade (#994)
- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.20127.9 - Microsoft.DotNet.GenAPI - 5.0.0-beta.20127.9 - Microsoft.DotNet.Helix.Sdk - 5.0.0-beta.20127.9
1 parent 254ec7d commit 4f06e13

File tree

5 files changed

+50
-19
lines changed

5 files changed

+50
-19
lines changed

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Dependencies>
33
<ToolsetDependencies>
4-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20126.7">
4+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20127.9">
55
<Uri>https://github.com/dotnet/arcade</Uri>
6-
<Sha>cd4164e1f3f7daf2a6f8dbd012210c93521bd82f</Sha>
6+
<Sha>9c66925c608f3c0ee3e1f66c05943865b64590e1</Sha>
77
</Dependency>
8-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20126.7">
8+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20127.9">
99
<Uri>https://github.com/dotnet/arcade</Uri>
10-
<Sha>cd4164e1f3f7daf2a6f8dbd012210c93521bd82f</Sha>
10+
<Sha>9c66925c608f3c0ee3e1f66c05943865b64590e1</Sha>
1111
</Dependency>
12-
<Dependency Name="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.20126.7">
12+
<Dependency Name="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.20127.9">
1313
<Uri>https://github.com/dotnet/arcade</Uri>
14-
<Sha>cd4164e1f3f7daf2a6f8dbd012210c93521bd82f</Sha>
14+
<Sha>9c66925c608f3c0ee3e1f66c05943865b64590e1</Sha>
1515
</Dependency>
1616
</ToolsetDependencies>
1717
<!-- ProductDependencies -->

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<PreReleaseVersionLabel>prerelease</PreReleaseVersionLabel>
5-
<MicrosoftDotNetGenAPIPackageVersion>5.0.0-beta.20126.7</MicrosoftDotNetGenAPIPackageVersion>
5+
<MicrosoftDotNetGenAPIPackageVersion>5.0.0-beta.20127.9</MicrosoftDotNetGenAPIPackageVersion>
66
<!-- dotnet/corefx dependencies -->
77
<SystemDrawingCommonPackageVersion>4.6.0</SystemDrawingCommonPackageVersion>
88
<SystemIOPortsPackageVersion>4.6.0</SystemIOPortsPackageVersion>

eng/common/dotnet-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ case $cpuname in
6363
amd64|x86_64)
6464
buildarch=x64
6565
;;
66-
armv7l)
66+
armv*l)
6767
buildarch=arm
6868
;;
6969
i686)

eng/common/init-tools-native.sh

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ while (($# > 0)); do
3434
force=true
3535
shift 1
3636
;;
37+
--donotabortonfailure)
38+
donotabortonfailure=true
39+
shift 1
40+
;;
41+
--donotdisplaywarnings)
42+
donotdisplaywarnings=true
43+
shift 1
44+
;;
3745
--downloadretries)
3846
download_retries=$2
3947
shift 2
@@ -52,6 +60,8 @@ while (($# > 0)); do
5260
echo " - (default) %USERPROFILE%/.netcoreeng/native"
5361
echo ""
5462
echo " --clean Switch specifying not to install anything, but cleanup native asset folders"
63+
echo " --donotabortonfailure Switch specifiying whether to abort native tools installation on failure"
64+
echo " --donotdisplaywarnings Switch specifiying whether to display warnings during native tools installation on failure"
5565
echo " --force Clean and then install tools"
5666
echo " --help Print help and exit"
5767
echo ""
@@ -92,6 +102,7 @@ if [[ -z $install_directory ]]; then
92102
fi
93103

94104
install_bin="${native_base_dir}/bin"
105+
installed_any=false
95106

96107
ReadGlobalJsonNativeTools
97108

@@ -103,8 +114,8 @@ else
103114
for tool in "${!native_assets[@]}"
104115
do
105116
tool_version=${native_assets[$tool]}
106-
installer_name="install-$tool.sh"
107-
installer_command="$native_installer_dir/$installer_name"
117+
installer_path="$native_installer_dir/install-$tool.sh"
118+
installer_command="$installer_path"
108119
installer_command+=" --baseuri $base_uri"
109120
installer_command+=" --installpath $install_bin"
110121
installer_command+=" --version $tool_version"
@@ -118,11 +129,29 @@ else
118129
installer_command+=" --clean"
119130
fi
120131

121-
$installer_command
122-
123-
if [[ $? != 0 ]]; then
124-
Write-PipelineTelemetryError -category 'NativeToolsBootstrap' "Execution Failed"
125-
exit 1
132+
if [[ -a $installer_path ]]; then
133+
$installer_command
134+
if [[ $? != 0 ]]; then
135+
if [[ $donotabortonfailure = true ]]; then
136+
if [[ $donotdisplaywarnings != true ]]; then
137+
Write-PipelineTelemetryError -category 'NativeToolsBootstrap' "Execution Failed"
138+
fi
139+
else
140+
Write-PipelineTelemetryError -category 'NativeToolsBootstrap' "Execution Failed"
141+
exit 1
142+
fi
143+
else
144+
$installed_any = true
145+
fi
146+
else
147+
if [[ $donotabortonfailure == true ]]; then
148+
if [[ $donotdisplaywarnings != true ]]; then
149+
Write-PipelineTelemetryError -category 'NativeToolsBootstrap' "Execution Failed: no install script"
150+
fi
151+
else
152+
Write-PipelineTelemetryError -category 'NativeToolsBootstrap' "Execution Failed: no install script"
153+
exit 1
154+
fi
126155
fi
127156
done
128157
fi
@@ -135,8 +164,10 @@ if [[ -d $install_bin ]]; then
135164
echo "Native tools are available from $install_bin"
136165
echo "##vso[task.prependpath]$install_bin"
137166
else
138-
Write-PipelineTelemetryError -category 'NativeToolsBootstrap' "Native tools install directory does not exist, installation failed"
139-
exit 1
167+
if [[ $installed_any = true ]]; then
168+
Write-PipelineTelemetryError -category 'NativeToolsBootstrap' "Native tools install directory does not exist, installation failed"
169+
exit 1
170+
fi
140171
fi
141172

142173
exit 0

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"version": "3.1.101"
1212
},
1313
"msbuild-sdks": {
14-
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20126.7",
15-
"Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.20126.7"
14+
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20127.9",
15+
"Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.20127.9"
1616
}
1717
}

0 commit comments

Comments
 (0)