-
Notifications
You must be signed in to change notification settings - Fork 84
SH doesn't correctly grab global.json sdk version #7
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
Comments
@wli3 who can help with this? |
Although I don't think this is a high priory issue. Considering we want to move majority of the logic out of the bash script (to some programming language more maintainable). Once we have that, we can share logic with SDK resolver for this logic |
We haven't been able to fix the issues with failing builds yet, so we don't have the availability to work on this issue now. Please track the progress of the current issue we are working here: dotnet/sdk#11320 |
It looks like the issue can be fixed by removing the line https://github.com/dotnet/install-scripts/blob/master/src/dotnet-install.sh#L471
On macOS, echo does not have a I've already created a PR in sdk repo - dotnet/sdk#12339, as I thought that was the right place to fix it. All tests are passed and I've added more tests to reproduce the issue there. I can create a similar PR in the install-scripts repo. However, |
Hello @kondratyev-nv! I agree, it seems the problem is in this line. Your PR from SDK repo should solve it. Could you please make a similar PR to this repo? The |
@AR-May Hi! Sure, I'll create one here 🙂 |
@kondratyev-nv Thank you! |
Has the fix for this been released? |
When I try the latest script I get the following failure when running on Ubuntu:
You can see the build on AppVeyor here. |
Hi @RehanSaeed , The change is merged to master, but we haven't deployed it to dot.net website yet. We, unfortunately, don't deploy that frequently unless there is a serious blocking issue, because deploying is a manual process. I will get this deployed soon. As a workaround, you can download the scripts using the GitHub link https://raw.githubusercontent.com/dotnet/install-scripts/master/src/dotnet-install.ps1 instead of https://dot.net/v1/dotnet-install.ps1 . |
Thanks @bozturkMSFT. So you don't ship with .NET 5, it's just ad-hoc right? In that case, is there a way to know when it's released? Or can you keep us posted about when it goes out? |
Hi @RehanSaeed . No, we don't follow .NET shipping schedule. I have created a PR here https://github.com/dotnet/website/pull/2418 . It usually takes 1 day to a week to get it released after that. There is, unfortunately, no way of knowing unless you check the internal release build. I will notify you here once it is available on the website. |
Hi @RehanSaeed , |
https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.sh when run as
bash ./dotnet-install.sh --jsonfile ./global.json
grabs everything insdk
afterversion
instead of only grabbing thesdk.version
value.Example of
global.json
:error:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: