Skip to content

Using --jsonfile switch of dotnet-install.sh fails with some roll forward policy #71

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
atifaziz opened this issue Aug 17, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@atifaziz
Copy link

I have a project with the following global.json:

{
  "sdk": {
    "version": "3.1.101",
    "rollForward": "latestFeature"
  }
}

Using dotnet-install.sh with the --jsonfile option produces an invalid download URL of the form: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.101rollForward:latestFeature/dotnet-sdk-3.1.101rollForward:latestFeature-linux-musl-x64.tar.gz

The problem is the 3.1.101rollForward:latestFeature path component of the URL.

Steps to reproduce in a Docker container running Alpine Linux 3.9:

❯ docker run --rm -it alpine:3.9
/ # apk add --no-cache -q bash
/ # wget -q https://dot.net/v1/dotnet-install.sh
/ # chmod +x dotnet-install.sh
/ # cat > global.json <<EOF
> {
>   "sdk": {
>     "version": "3.1.101",
>     "rollForward": "latestFeature"
>   }
> }
> EOF
/ # ./dotnet-install.sh --jsonfile global.json --dry-run
dotnet-install: Payload URLs:
dotnet-install: Primary named payload URL: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.101rollForward:latestFeature/dotnet-sdk-3.1.101rollForward:latestFeature-linux-musl-x64.tar.gz
dotnet-install: Repeatable invocation: ./dotnet-install.sh --version "3.1.101rollForward:latestFeature" --install-dir "/root/.dotnet" --architecture "x64"
@bekir-ozturk
Copy link
Contributor

Hi @atifaziz ,
Thank you for the issue. Since we are already tracking this in #7, I will close this one.

@bekir-ozturk bekir-ozturk added the duplicate This issue or pull request already exists label Aug 26, 2020
@atifaziz
Copy link
Author

@bozturkMSFT Thanks for pointing me to the already logged issue and apologies for the duplicate (search failed me).

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

2 participants