-
Notifications
You must be signed in to change notification settings - Fork 519
Open
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic
Description
Description:
When rollForward
is set to latestMinor
and sdk.version
is set to 7.0.0
, I expect the script to use the latest installed version of .NET SDK (https://learn.microsoft.com/en-us/dotnet/core/tools/global-json).
But instead the script crashes with Failed to install dotnet
error:
Run actions/setup-dotnet@v3
/home/runner/work/_actions/actions/setup-dotnet/v3/externals/install-dotnet.sh --version 7.0.0
dotnet-install: Attempting to download using primary link https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-linux-x64.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at primary link 'https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-linux-x64.tar.gz' is not available.
dotnet-install: Attempting to download using primary link https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-linux-x64.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at primary link 'https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-linux-x64.tar.gz' is not available.
dotnet_install: Error: Could not find `.NET Core SDK` with version = 7.0.0
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Error: Failed to install dotnet, exit code: 1. dotnet_install: Error: Could not find `.NET Core SDK` with version = 7.0.0
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Task version:
Specify the task version
Platform:
- UbuntumacOSWindowsTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Runner type:
- HostedTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Repro steps:
ubuntu-22.04
runner (with pre-installed .NET SDK7.0.306
)global.json
:
{
"sdk": {
"version": "7.0.0",
"rollForward": "latestMinor"
}
}
Expected behavior:
The script should use the highest installed minor version of .NET SDK
Actual behavior:
An error: Failed to install dotnet, exit code: 1. dotnet_install: Error: Could not find '.NET Core SDK' with version = 7.0.0
Frulfump, BrunoJuchli, AlanRynne, rjmurillo, mungojam and 2 more
Metadata
Metadata
Assignees
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
nikolai-laevskii commentedon Aug 16, 2023
Thank you for the detailed description of the issue! We will investigate it and come back with an update.
IvanZosimov commentedon Aug 23, 2023
Hi, @nZeus 👋 Unfortunately, the
setup-dotnet
currently supports only onerollForward
option -latestFeature
. I'm going to transform this bug report to the feature request.Fix global.json. Version ranges are not supported in global.json, als…
Disable rollForward for SDK in global.json (#170)