actions / setup-dotnet

Set up your GitHub Actions workflow with a specific version of the .NET core sdk
MIT License
919 stars 452 forks source link

NET 7.0.0 installation fails #500

Closed riverar closed 5 months ago

riverar commented 5 months ago

Description: Attempting to setup .NET 7.0.0 fails. The build remains online at https://dotnet.microsoft.com/en-us/download/dotnet/7.0

Task version: v3

Platform:

Runner type:

Repro steps:

- name: Setup .NET
  uses: actions/setup-dotnet@v3
  with:
    dotnet-version: |
      7.0.0
      8.x

Expected behavior: Valid installation of NET 7.0.0.

Actual behavior:

dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404
Could not find ".NET Core SDK" with version = 7.0.0
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support
At D:\a\_actions\actions\setup-dotnet\v1\externals\install-dotnet.ps1:1217 char:5
+     throw "Could not find `"$assetName`" with version = $($DownloadLi ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Could not find ...on .NET support:String) [], RuntimeException
    + FullyQualifiedErrorId : Could not find ".NET Core SDK" with version = 7.0.0
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support
HarithaVattikuti commented 5 months ago

Hello @riverar Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback

IAmCWeimer commented 5 months ago

NET 4.8.1 installation fails, too.

HarithaVattikuti commented 5 months ago

Hello @riverar, Setup-dotnet doesn't support installing .NET Framework SDKs. As there is no exact version 7.0.0 of .NET available, the action failed. As a workaround I can suggest to change value to use rollForward key to latestFeature, or target some exact version of .NET SDK. Feel free to reach us out incase of any further issues. Thank you!

riverar commented 5 months ago

@HarithaVattikuti Thanks, I completely missed that .NET 7 SDK is versioned 7.0.100!