dotnet / install-scripts

MIT License
128 stars 68 forks source link

`-c STS` is almost meaningless when the latest major release is an LTS (e.g. .NET 8) #418

Open nodakai opened 7 months ago

nodakai commented 7 months ago

I believe that the -c STS option should consider both STS and LTS releases, rather than focusing exclusively on STS. Alternatively, there could be a different mode that selects the newer version between STS and LTS.

Currently, -c LTS (the default) installs SDK 8.0.100, while -c STS installs 7.0.404. It seems more practical to use -c 8.0 etc. and update the channel IDs once a year, if -c STS does not automatically choose the latest major release channel.

While the current approach might align with the distribution method of release files on Azure CDN, it's not particularly convenient for the script users.

YuliiaKovalova commented 7 months ago

Hi @nodakai, Thank you for reporting this issue. Let's invite other people to discuss your reasoning.

@leecow & @baronfel please share your opinion on that. Probably we can improve documentation/review the existing script design.

leecow commented 7 months ago

The desired outcome is reasonable, and I recall discussions early in .NET around STS (then 'Current') and LTS resolving to the same version every other release cycle. I don't have any objections to making the change.

baronfel commented 7 months ago

I'm ok with that change as well - my understanding is that this is more a question of how the STS channel is documented in the help and learn.ms.com docs for this tool, plus some changes to the automated processes that the release team uses to create the redirect scheme for us. Is that correct?

YuliiaKovalova commented 7 months ago

I'm ok with that change as well - my understanding is that this is more a question of how the STS channel is documented in the help and learn.ms.com docs for this tool, plus some changes to the automated processes that the release team uses to create the redirect scheme for us. Is that correct?

You are right. And there is always a chance to download the latest version from the specified channel - it can fill the potential gap for the option absence.

YuliiaKovalova commented 7 months ago

@baronfel, at the same time, the next SDK version is planned to be released as STS https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core#cadence:~:text=.-,NET,-release%20cadence So in a year STS -> .net 9, LTS -> .net 8 @rbhanda, do I miss anything here?