Skip to content

Commit d11f2bf

Browse files
[main] Update dependencies from dotnet/arcade (#69356)
[main] Update dependencies from dotnet/arcade - Coherency Updates: - Microsoft.DotNet.XliffTasks: from 1.0.0-beta.23381.1 to 1.0.0-beta.23408.1 (parent: Microsoft.DotNet.Arcade.Sdk)
1 parent 1368be9 commit d11f2bf

6 files changed

Lines changed: 231 additions & 10 deletions

File tree

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
</Dependency>
1414
</ProductDependencies>
1515
<ToolsetDependencies>
16-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23401.3">
16+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23409.5">
1717
<Uri>https://github.com/dotnet/arcade</Uri>
18-
<Sha>f99e2f9b8aca08b8fa0877e78a448c0c0b74236d</Sha>
18+
<Sha>bebd2de1988036b47ecefc7e72b66ce2f403e43d</Sha>
1919
<SourceBuild RepoName="arcade" ManagedOnly="true" />
2020
</Dependency>
21-
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23381.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
21+
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23408.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
2222
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
23-
<Sha>d3553ca27fb1c128f302f52b73c0079e65d62ea8</Sha>
23+
<Sha>493329204079519072f0241ed26f692bdee0d60c</Sha>
2424
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
2525
</Dependency>
2626
<Dependency Name="Microsoft.DiaSymReader" Version="2.0.0">
@@ -31,9 +31,9 @@
3131
<Uri>https://github.com/dotnet/roslyn</Uri>
3232
<Sha>5d10d428050c0d6afef30a072c4ae68776621877</Sha>
3333
</Dependency>
34-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.23401.3">
34+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.23409.5">
3535
<Uri>https://github.com/dotnet/arcade</Uri>
36-
<Sha>f99e2f9b8aca08b8fa0877e78a448c0c0b74236d</Sha>
36+
<Sha>bebd2de1988036b47ecefc7e72b66ce2f403e43d</Sha>
3737
</Dependency>
3838
<Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview.23251.1">
3939
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
32 Bytes
Binary file not shown.
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
#!/usr/bin/env bash
2+
3+
# getNonPortableDistroRid
4+
#
5+
# Input:
6+
# targetOs: (str)
7+
# targetArch: (str)
8+
# rootfsDir: (str)
9+
#
10+
# Return:
11+
# non-portable rid
12+
getNonPortableDistroRid()
13+
{
14+
local targetOs="$1"
15+
local targetArch="$2"
16+
local rootfsDir="$3"
17+
local nonPortableRid=""
18+
19+
if [ "$targetOs" = "linux" ]; then
20+
if [ -e "${rootfsDir}/etc/os-release" ]; then
21+
source "${rootfsDir}/etc/os-release"
22+
23+
if [[ "${ID}" == "rhel" || "${ID}" == "rocky" || "${ID}" == "alpine" ]]; then
24+
# remove the last version digit
25+
VERSION_ID="${VERSION_ID%.*}"
26+
fi
27+
28+
if [[ "${VERSION_ID:-}" =~ ^([[:digit:]]|\.)+$ ]]; then
29+
nonPortableRid="${ID}.${VERSION_ID}-${targetArch}"
30+
else
31+
# Rolling release distros either do not set VERSION_ID, set it as blank or
32+
# set it to non-version looking string (such as TEMPLATE_VERSION_ID on ArchLinux);
33+
# so omit it here to be consistent with everything else.
34+
nonPortableRid="${ID}-${targetArch}"
35+
fi
36+
37+
elif [ -e "${rootfsDir}/android_platform" ]; then
38+
source "$rootfsDir"/android_platform
39+
nonPortableRid="$RID"
40+
fi
41+
fi
42+
43+
if [ "$targetOs" = "freebsd" ]; then
44+
# $rootfsDir can be empty. freebsd-version is shell script and it should always work.
45+
__freebsd_major_version=$($rootfsDir/bin/freebsd-version | { read v; echo "${v%%.*}"; })
46+
nonPortableRid="freebsd.$__freebsd_major_version-${targetArch}"
47+
elif command -v getprop && getprop ro.product.system.model 2>&1 | grep -qi android; then
48+
__android_sdk_version=$(getprop ro.build.version.sdk)
49+
nonPortableRid="android.$__android_sdk_version-${targetArch}"
50+
elif [ "$targetOs" = "illumos" ]; then
51+
__uname_version=$(uname -v)
52+
case "$__uname_version" in
53+
omnios-*)
54+
__omnios_major_version=$(echo "${__uname_version:8:2}")
55+
nonPortableRid=omnios."$__omnios_major_version"-"$targetArch"
56+
;;
57+
joyent_*)
58+
__smartos_major_version=$(echo "${__uname_version:7:4}")
59+
nonPortableRid=smartos."$__smartos_major_version"-"$targetArch"
60+
;;
61+
illumos_*)
62+
nonPortableRid=openindiana-"$targetArch"
63+
;;
64+
esac
65+
elif [ "$targetOs" = "solaris" ]; then
66+
__uname_version=$(uname -v)
67+
__solaris_major_version=$(echo "${__uname_version%.*}")
68+
nonPortableRid=solaris."$__solaris_major_version"-"$targetArch"
69+
elif [ "$targetOs" = "haiku" ]; then
70+
__uname_release=$(uname -r)
71+
nonPortableRid=haiku.r"$__uname_release"-"$targetArch"
72+
fi
73+
74+
echo "$(echo $nonPortableRid | tr '[:upper:]' '[:lower:]')"
75+
}
76+
77+
# initDistroRidGlobal
78+
#
79+
# Input:
80+
# os: (str)
81+
# arch: (str)
82+
# isPortable: (int)
83+
# rootfsDir?: (nullable:string)
84+
#
85+
# Return:
86+
# None
87+
#
88+
# Notes:
89+
#
90+
# It is important to note that the function does not return anything, but it
91+
# exports the following variables on success:
92+
#
93+
# __DistroRid : Non-portable rid of the target platform.
94+
# __PortableTargetOS : OS-part of the portable rid that corresponds to the target platform.
95+
#
96+
initDistroRidGlobal()
97+
{
98+
local targetOs="$1"
99+
local targetArch="$2"
100+
local isPortable="$3"
101+
local rootfsDir=""
102+
if [ "$#" -ge 4 ]; then
103+
rootfsDir="$4"
104+
fi
105+
106+
if [ -n "${rootfsDir}" ]; then
107+
# We may have a cross build. Check for the existence of the rootfsDir
108+
if [ ! -e "${rootfsDir}" ]; then
109+
echo "Error rootfsDir has been passed, but the location is not valid."
110+
exit 1
111+
fi
112+
fi
113+
114+
__DistroRid=$(getNonPortableDistroRid "${targetOs}" "${targetArch}" "${rootfsDir}")
115+
116+
if [ -z "${__PortableTargetOS:-}" ]; then
117+
__PortableTargetOS="$targetOs"
118+
119+
STRINGS="$(command -v strings || true)"
120+
if [ -z "$STRINGS" ]; then
121+
STRINGS="$(command -v llvm-strings || true)"
122+
fi
123+
124+
# Check for musl-based distros (e.g Alpine Linux, Void Linux).
125+
if "${rootfsDir}/usr/bin/ldd" --version 2>&1 | grep -q musl ||
126+
( [ -n "$STRINGS" ] && "$STRINGS" "${rootfsDir}/usr/bin/ldd" 2>&1 | grep -q musl ); then
127+
__PortableTargetOS="linux-musl"
128+
fi
129+
fi
130+
131+
export __DistroRid __PortableTargetOS
132+
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
#!/usr/bin/env bash
2+
3+
# Use uname to determine what the OS is.
4+
OSName=$(uname -s | tr '[:upper:]' '[:lower:]')
5+
6+
if command -v getprop && getprop ro.product.system.model 2>&1 | grep -qi android; then
7+
OSName="android"
8+
fi
9+
10+
case "$OSName" in
11+
freebsd|linux|netbsd|openbsd|sunos|android|haiku)
12+
os="$OSName" ;;
13+
darwin)
14+
os=osx ;;
15+
*)
16+
echo "Unsupported OS $OSName detected!"
17+
exit 1 ;;
18+
esac
19+
20+
# On Solaris, `uname -m` is discouraged, see https://docs.oracle.com/cd/E36784_01/html/E36870/uname-1.html
21+
# and `uname -p` returns processor type (e.g. i386 on amd64).
22+
# The appropriate tool to determine CPU is isainfo(1) https://docs.oracle.com/cd/E36784_01/html/E36870/isainfo-1.html.
23+
if [ "$os" = "sunos" ]; then
24+
if uname -o 2>&1 | grep -q illumos; then
25+
os="illumos"
26+
else
27+
os="solaris"
28+
fi
29+
CPUName=$(isainfo -n)
30+
else
31+
# For the rest of the operating systems, use uname(1) to determine what the CPU is.
32+
CPUName=$(uname -m)
33+
fi
34+
35+
case "$CPUName" in
36+
arm64|aarch64)
37+
arch=arm64
38+
;;
39+
40+
loongarch64)
41+
arch=loongarch64
42+
;;
43+
44+
riscv64)
45+
arch=riscv64
46+
;;
47+
48+
amd64|x86_64)
49+
arch=x64
50+
;;
51+
52+
armv7l|armv8l)
53+
if (NAME=""; . /etc/os-release; test "$NAME" = "Tizen"); then
54+
arch=armel
55+
else
56+
arch=arm
57+
fi
58+
;;
59+
60+
armv6l)
61+
arch=armv6
62+
;;
63+
64+
i[3-6]86)
65+
echo "Unsupported CPU $CPUName detected, build might not succeed!"
66+
arch=x86
67+
;;
68+
69+
s390x)
70+
arch=s390x
71+
;;
72+
73+
ppc64le)
74+
arch=ppc64le
75+
;;
76+
*)
77+
echo "Unknown CPU $CPUName detected!"
78+
exit 1
79+
;;
80+
esac

eng/common/templates/steps/source-build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,12 @@ steps:
118118
artifactName: BuildLogs_SourceBuild_${{ parameters.platform.name }}_Attempt$(System.JobAttempt)
119119
continueOnError: true
120120
condition: succeededOrFailed()
121+
122+
# Manually inject component detection so that we can ignore the source build upstream cache, which contains
123+
# a nupkg cache of input packages (a local feed).
124+
# This path must match the upstream cache path in property 'CurrentRepoSourceBuiltNupkgCacheDir'
125+
# in src\Microsoft.DotNet.Arcade.Sdk\tools\SourceBuild\SourceBuildArcade.targets
126+
- task: ComponentGovernanceComponentDetection@0
127+
displayName: Component Detection (Exclude upstream cache)
128+
inputs:
129+
ignoreDirectories: '$(Build.SourcesDirectory)/artifacts/source-build/self/src/artifacts/obj/source-built-upstream-cache'

global.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"sdk": {
3-
"version": "8.0.100-preview.6.23330.14",
3+
"version": "8.0.100-preview.7.23376.3",
44
"allowPrerelease": false,
55
"rollForward": "latestPatch"
66
},
77
"tools": {
8-
"dotnet": "8.0.100-preview.6.23330.14",
8+
"dotnet": "8.0.100-preview.7.23376.3",
99
"vs": {
1010
"version": "17.6.0"
1111
},
1212
"xcopy-msbuild": "17.6.0-2"
1313
},
1414
"msbuild-sdks": {
15-
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23401.3",
16-
"Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.23401.3"
15+
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23409.5",
16+
"Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.23409.5"
1717
}
1818
}

0 commit comments

Comments
 (0)