Skip to content

Commit e4284a2

Browse files
authored
install-from-source.sh: update to .NET 8 SDK (#1580)
Update the install from source script on Linux to install the .NET 8 SDK. Verified this fix in manual run of https://github.com/git-ecosystem/git-credential-manager/actions/runs/8697380253 Note the Alpine issue is to be fixed in a separate PR: #1574
2 parents 064c6c4 + beaf40d commit e4284a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/linux/Packaging.Linux/install-from-source.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ensure_dotnet_installed() {
8383
if [ -z "$(verify_existing_dotnet_installation)" ]; then
8484
curl -LO https://dot.net/v1/dotnet-install.sh
8585
chmod +x ./dotnet-install.sh
86-
bash -c "./dotnet-install.sh --channel 7.0"
86+
bash -c "./dotnet-install.sh --channel 8.0"
8787

8888
# Since we have to run the dotnet install script with bash, dotnet isn't
8989
# added to the process PATH, so we manually add it here.
@@ -98,7 +98,7 @@ verify_existing_dotnet_installation() {
9898
sdks=$(dotnet --list-sdks | cut -c 1-3)
9999

100100
# If we have a supported version installed, return.
101-
supported_dotnet_versions="7.0"
101+
supported_dotnet_versions="8.0"
102102
for v in $supported_dotnet_versions; do
103103
if [ $(echo $sdks | grep "$v") ]; then
104104
echo $sdks
@@ -173,7 +173,7 @@ case "$distribution" in
173173
$sudo_cmd apt update
174174
$sudo_cmd apt install apt-transport-https -y
175175
$sudo_cmd apt update
176-
$sudo_cmd apt install dotnet-sdk-7.0 dpkg-dev -y
176+
$sudo_cmd apt install dotnet-sdk-8.0 dpkg-dev -y
177177
fi
178178
fi
179179
;;

0 commit comments

Comments
 (0)