Skip to content
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

Use install-dotnet scripts for installation #71

Closed
wants to merge 46 commits into from
Closed

Conversation

ZEisinger
Copy link
Contributor

Fixes sxs issues (#25), caching, allows using global.json (#14), better error messages (#54)

Default install location is used rather than the toolkit's cache, this enables side by side installs to work properly.

// Fallback to \n if initial split doesn't work (not consistent across versions)
if (lines.length === 1) {
lines = output.split('\n');
let scriptArguments: string[] = [];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to pass proxy settings into the script when being called

src/installer.ts Outdated
.replace(/'/g, "''");
let command = `& '${escapedScript}'`;
if (this.version) {
command += ` -Version ${this.version}`;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to pass in proxy settings

@RehanSaeed
Copy link

Any updates on this?

@int3rrupt
Copy link

@RehanSaeed I’ve been using for a while now. I know it’s not the best solution but you’re able to use this by referencing the branch name whole this gets merged.

- name: Setup .NET Core 2.1
      uses: actions/setup-dotnet@sxs-with-fallback
      with:
        dotnet-version: 2.1.804

@ZEisinger
Copy link
Contributor Author

The install scripts are incompatible with proxy settings added recently. The product team has also pushed back on autoupgrade scenarios being added. Addressing #25 will need to be done separately.

@ZEisinger ZEisinger closed this May 15, 2020
@ZEisinger ZEisinger reopened this Jul 16, 2020
bekir-ozturk added a commit to dotnet/install-scripts that referenced this pull request Jul 29, 2020
Required for actions/setup-dotnet#71. Agents can set proxy settings for their runs which include addresses which should not go through the proxy. This script doesn't allow that value to be specified for windows. In the shell script this is handled by wget and curl both honoring the environment variables https_proxy and no_proxy.
@ZEisinger ZEisinger changed the base branch from master to main August 10, 2020 16:15
@ZEisinger ZEisinger closed this Aug 27, 2020
@RehanSaeed
Copy link

Is this now released?

@int3rrupt
Copy link

Is this now released?

@RehanSaeed Looks like a new PR was created for side by side installs #124

@ZEisinger
Copy link
Contributor Author

There were a lot of changes since this PR, so I created a clean PR

@ZEisinger ZEisinger deleted the sxs-with-fallback branch September 22, 2020 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants