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

[Windows] Update the scripts to fetch latest git version #11027

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kishorekumar-anchala
Copy link
Contributor

@kishorekumar-anchala kishorekumar-anchala commented Nov 23, 2024

Description

This PR will

  • Modify the Install-Git script to fetch latest version

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

@kishorekumar-anchala kishorekumar-anchala changed the title [Windows] Update Checksums for VisualStudio , DACFx and modify Install-Git script [Windows] Update Signatures for Visua lStudio , DACFx and modify Install-Git script Nov 23, 2024
@kishorekumar-anchala kishorekumar-anchala changed the title [Windows] Update Signatures for Visua lStudio , DACFx and modify Install-Git script [Windows] Update Signatures for Visual Studio , DACFx and modify Install-Git script Nov 23, 2024
@kishorekumar-anchala kishorekumar-anchala self-assigned this Nov 23, 2024
@kishorekumar-anchala kishorekumar-anchala changed the title [Windows] Update Signatures for Visual Studio , DACFx and modify Install-Git script [Windows] Update Signature for DACFx and modify Install-Git script Nov 24, 2024
@@ -5,6 +5,6 @@

Install-Binary -Type MSI `
-Url 'https://aka.ms/dacfx-msi' `
-ExpectedSignature 'C2048FB509F1C37A8C3E9EC6648118458AA01780'
-ExpectedSignature '8F985BE8FD256085C90A95D3C74580511A1DB975'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be separate PR

@@ -4,18 +4,13 @@
## Supply chain security: Git - checksum validation, Hub CLI - managed by package manager
################################################################################

# Install the latest version of Git for Windows

$downloadUrl = Resolve-GithubReleaseAssetUrl `
Copy link
Collaborator

Choose a reason for hiding this comment

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

By refusing to use a function, you lose some of the functionality, e.g. download retries. Instead of rewriting the script itself, it is better to fix the Resolve-GithubReleaseAssetUrl function


# Download URL and SHA256 checksum
$downloadUrl = $asset.browser_download_url
$externalHash = "83c618dcc50b63f0f7afc86a7a125169bd59559ff680683f1d915c45e05ff4cc"
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is no need to hardcode the hash if it can be obtained automatically.

@kishorekumar-anchala kishorekumar-anchala changed the title [Windows] Update Signature for DACFx and modify Install-Git script [Windows] Update the scripts to fetch latest got version Nov 26, 2024
@kishorekumar-anchala kishorekumar-anchala changed the title [Windows] Update the scripts to fetch latest got version [Windows] Update the scripts to fetch latest git version Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants