Repro steps:
-
Using the dotnet CLI, generate an app:
dotnet new webApp -o foo --no-https # used .NET 5 SDK
-
Add a global.json to the app source dir:
{
"sdk": {
"version": "5.0.4"
}
}
-
Push the app:
Expected to download SDK 5.0.401 during staging
Instead, SDK 5.0.413 was attempted:
**WARNING** SDK 5.0.4 in global.json is not available
falling back to latest version in version line
-----> Installing dotnet-sdk 5.0.413
**ERROR** DEPENDENCY MISSING IN MANIFEST:
Version 5.0.413 of dependency dotnet-sdk is not supported by this buildpack.
The versions of dotnet-sdk supported in this buildpack are:
- 3.1.412
- 3.1.413
- 5.0.400
- 5.0.401
**ERROR** Unable to install Dotnet SDK: dependency dotnet-sdk 5.0.413 not found
(Using buildpack v2.3.35)
It seems that the roll forward logic has gotten mixed up with the major version number and took the .413 from the 3.x version line instead of the 5.x version line.
Please confirm where necessary:
Repro steps:
Using the
dotnetCLI, generate an app:dotnet new webApp -o foo --no-https # used .NET 5 SDKAdd a
global.jsonto the app source dir:{ "sdk": { "version": "5.0.4" } }Push the app:
Expected to download SDK 5.0.401 during staging
Instead, SDK 5.0.413 was attempted:
(Using buildpack v2.3.35)
It seems that the roll forward logic has gotten mixed up with the major version number and took the
.413from the3.xversion line instead of the5.xversion line.Please confirm where necessary: