Skip to content

dotnet-install.sh Fails When global.json Contains rollForward=latestMajor #83

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

Closed
RehanSaeed opened this issue Feb 14, 2020 · 4 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@RehanSaeed
Copy link

When I add the rollForward property to my global.json file like so:

{
  "sdk": {
    "version": "3.1.100",
    "rollForward": "latestMajor"
  }
}

My MacOS build fails with the following error:

dotnet-install:(B Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100rollForward:latestMajor/dotnet-sdk-3.1.100rollForward:latestMajor-osx-x64.tar.gz
curl: (22) The requested URL returned error: 404 
dotnet-install:(B Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100rollForward:latestMajor/dotnet-sdk-3.1.100rollForward:latestMajor-osx-x64.tar.gz
dotnet-install:(B Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100rollForward:latestMajor/dotnet-dev-osx-x64.3.1.100rollForward:latestMajor.tar.gz
curl: (22) The requested URL returned error: 404 
dotnet-install:(B Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100rollForward:latestMajor/dotnet-dev-osx-x64.3.1.100rollForward:latestMajor.tar.gz
dotnet_install: Error: Could not find/download: `.NET Core SDK` with version = 3.1.100rollForward:latestMajor(B
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support(B
Command exited with code 1

My Ubuntu 18.04 build fails with the following error:

dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.�(B
dotnet-install:(B Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100rollForward:latestMajor/dotnet-sdk-3.1.100rollForward:latestMajor-linux-x64.tar.gz
curl: (22) The requested URL returned error: 404 
dotnet-install:(B Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100rollForward:latestMajor/dotnet-sdk-3.1.100rollForward:latestMajor-linux-x64.tar.gz
dotnet-install:(B Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100rollForward:latestMajor/dotnet-dev-ubuntu.18.04-x64.3.1.100rollForward:latestMajor.tar.gz
curl: (22) The requested URL returned error: 404 
dotnet-install:(B Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100rollForward:latestMajor/dotnet-dev-ubuntu.18.04-x64.3.1.100rollForward:latestMajor.tar.gz
dotnet_install: Error: Could not find/download: `.NET Core SDK` with version = 3.1.100rollForward:latestMajor(B
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support(B
Command exited with code 1

You can find my AppVeyor build here and GitHub PR here. My full PowerShell Core script:

if ($isLinux) {
  sudo apt update
  sudo apt install -y zlib1g apt-transport-https
} else {
  brew update
  brew install mono
  brew install mono-libgdiplus
  $env:TERM = 'xterm'
}

Invoke-WebRequest "https://dot.net/v1/dotnet-install.sh" -OutFile "./dotnet-install.sh";
chmod u+x dotnet-install.sh
./dotnet-install.sh --jsonfile global.json
@RehanSaeed
Copy link
Author

RehanSaeed commented Sep 28, 2020

Just tested this again and it's still an issue.

@nguerrera Has anyone taken a look? Are there any updates?

@nguerrera
Copy link

cc @marcpopMSFT @dsplaisted

Sorry, I don't work on this project anymore and haven't for months. I was not even aware there was a --jsonfile argument to dotnet-install.sh, maybe it was added after I left, or maybe I just never saw or used it. Either way, I'm not of much help. :) But from the transcript above, it looks like it doesn't do a very good job of parsing the json.

@marcpopMSFT marcpopMSFT transferred this issue from dotnet/sdk Sep 28, 2020
@marcpopMSFT
Copy link
Member

Moving over to the install scripts repo as we've moved the dotnet-install work here. @donJoseLuis for visibility.

@bekir-ozturk
Copy link
Contributor

Hi @RehanSaeed ,
Thank you for the issue.
We are tracking this in issue #7 and we will get to it as part of our roadmap.

@bekir-ozturk bekir-ozturk added the duplicate This issue or pull request already exists label Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants