Skip to content

Conversation

NikolaMilosavljevic
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings October 15, 2025 18:43
@NikolaMilosavljevic NikolaMilosavljevic requested a review from a team as a code owner October 15, 2025 18:43
@NikolaMilosavljevic NikolaMilosavljevic added the * NO MERGE * Do not merge this PR as long as this label is present. label Oct 15, 2025
@github-actions github-actions bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Oct 15, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the .NET install script URLs in both PowerShell and shell scripts to point to the new GitHub repository location instead of the builds.dotnet.microsoft.com domain.

Key Changes

  • Updated install script URL source from builds.dotnet.microsoft.com to raw.githubusercontent.com
  • Changes affect both Windows (PowerShell) and Unix (shell) script versions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
eng/common/tools.sh Updated .NET install script URL to use GitHub raw content endpoint
eng/common/tools.ps1 Updated .NET install script URL to use GitHub raw content endpoint

local root=$1
local install_script="$root/dotnet-install.sh"
local install_script_url="https://builds.dotnet.microsoft.com/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.sh"
local install_script_url="https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.sh"
Copy link

Copilot AI Oct 15, 2025

Choose a reason for hiding this comment

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

The hardcoded 'main' branch reference in the URL could lead to unexpected behavior if the main branch is updated. Consider using a specific commit SHA or version tag to ensure reproducible builds, or document why using the main branch is acceptable for this use case.

Suggested change
local install_script_url="https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.sh"
# Use a specific version tag for reproducibility. Update as needed.
local install_script_url="https://raw.githubusercontent.com/dotnet/install-scripts/v1.5.0/src/dotnet-install.sh"

Copilot uses AI. Check for mistakes.

Create-Directory $dotnetRoot
$ProgressPreference = 'SilentlyContinue' # Don't display the console progress UI - it's a huge perf hit
$uri = "https://builds.dotnet.microsoft.com/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.ps1"
$uri = "https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1"
Copy link

Copilot AI Oct 15, 2025

Choose a reason for hiding this comment

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

The hardcoded 'main' branch reference in the URL could lead to unexpected behavior if the main branch is updated. Consider using a specific commit SHA or version tag to ensure reproducible builds, or document why using the main branch is acceptable for this use case.

Suggested change
$uri = "https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1"
$uri = "https://raw.githubusercontent.com/dotnet/install-scripts/v1.5.0/src/dotnet-install.ps1"

Copilot uses AI. Check for mistakes.

@NikolaMilosavljevic
Copy link
Member Author

The failure is unrelated to verification of install scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework * NO MERGE * Do not merge this PR as long as this label is present.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant