Skip to content

Commit

Permalink
install-from-source.sh: update to .NET 8 SDK (#1580)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mjcheetham authored Apr 15, 2024
2 parents 064c6c4 + beaf40d commit e4284a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/linux/Packaging.Linux/install-from-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ensure_dotnet_installed() {
if [ -z "$(verify_existing_dotnet_installation)" ]; then
curl -LO https://dot.net/v1/dotnet-install.sh
chmod +x ./dotnet-install.sh
bash -c "./dotnet-install.sh --channel 7.0"
bash -c "./dotnet-install.sh --channel 8.0"

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

# If we have a supported version installed, return.
supported_dotnet_versions="7.0"
supported_dotnet_versions="8.0"
for v in $supported_dotnet_versions; do
if [ $(echo $sdks | grep "$v") ]; then
echo $sdks
Expand Down Expand Up @@ -173,7 +173,7 @@ case "$distribution" in
$sudo_cmd apt update
$sudo_cmd apt install apt-transport-https -y
$sudo_cmd apt update
$sudo_cmd apt install dotnet-sdk-7.0 dpkg-dev -y
$sudo_cmd apt install dotnet-sdk-8.0 dpkg-dev -y
fi
fi
;;
Expand Down

0 comments on commit e4284a2

Please sign in to comment.