-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK "roll forward" logic broken #458
Comments
@sophiewigmore @ForestEckhardt - Does this still apply since we're on 6/7? If not, please close. |
The |
Let's move to the icebox for now. If users start running into it we can look into again. |
Providing a slightly different perspective on this subject (if this feels too off-topic I can create a new issue), I have an app that targets .NET 8, and am deploying to an environment that has v2.4.24 of the buildpack. As a .NET developer, I typically do NOT expect that I need to provide a global.json unless I need to specify the sdk version/range for some specific reason. Normally I just want the app to build with whatever installed sdk is up to the task (typically the latest version) and expect it to fail if that is not possible in the build environment. I would never expect to need to add global.json to use the latest LTS. Why don't I want to add a global.json? The logic built into the SDK generally just works and I usually don't even know what patch version I have (and it's always quite different from the runtime version) and certainly have no idea (or reason to care about specifics) what versions are in the buildpack. Notably, the SDK is backwards compatible:
It would be a dramatic improvement in the user experience if the buildpack can be updated in such a way that the user only needs to care about sdk versions if there's an actual problem. |
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: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
.413
from the3.x
version line instead of the5.x
version line.Please confirm where necessary:
The text was updated successfully, but these errors were encountered: