Skip to content

Commit 3e79c8b

Browse files
authored
fix: make git installation more resilient against ssl tampering (#743)
1 parent 9370a4f commit 3e79c8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vscode-lean4/media/guide-installLean-windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The automatic installation will run a script to install Elan and Git.
1111
On newer Windows systems that support the package manager [winget](https://learn.microsoft.com/en-us/windows/package-manager/winget/), the following script will be executed:
1212
```powershell
1313
# Install Git using `winget`.
14-
winget install -e --id Git.Git --silent --accept-package-agreements --accept-source-agreements --disable-interactivity
14+
winget install -e --id Git.Git --source winget --silent --accept-package-agreements --accept-source-agreements --disable-interactivity
1515
# Download the Elan installation script at https://github.com/leanprover/elan/blob/master/elan-init.ps1 and run it. Elan will be installed to `%USERPROFILE%\.elan`.
1616
$installCode = (Invoke-WebRequest -Uri "https://elan.lean-lang.org/elan-init.ps1" -UseBasicParsing -ErrorAction Stop).Content
1717
$installer = [ScriptBlock]::Create([System.Text.Encoding]::UTF8.GetString($installCode))

vscode-lean4/src/utils/depInstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function dependencyInstallationMethod(p: MissingDependencyInstallationProcedure)
363363
}
364364
}
365365
const windowsWingetGitInstallScript =
366-
'winget install -e --id Git.Git --silent --accept-package-agreements --accept-source-agreements --disable-interactivity'
366+
'winget install -e --id Git.Git --source winget --silent --accept-package-agreements --accept-source-agreements --disable-interactivity'
367367
return {
368368
kind: 'Automatic',
369369
shell: 'Windows',

0 commit comments

Comments
 (0)