Skip to content

SDK "roll forward" logic broken #458

@menehune23

Description

@menehune23

Repro steps:

  1. Using the dotnet CLI, generate an app:

    dotnet new webApp -o foo --no-https  # used .NET 5 SDK
  2. Add a global.json to the app source dir:

    {
      "sdk": {
        "version": "5.0.4"
      }
    }
  3. Push the app:

cd foo && cf push test

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:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ❓ Not scoped

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions