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 & to run powershell script, and -DisableCurl in the default windows installation #1100

Merged
merged 3 commits into from
Jul 20, 2024

Conversation

dfordivam
Copy link
Collaborator

Fixes #1000

@hasufell
Copy link
Member

We have a bootstrap test boostrap.yaml. It currently just runs the local script. I guess we could:

  • inspect commit/branch and then actually use the full url to the bootstrap-haskell.ps1 at that commit to fetch it and install it via the new command

@hasufell
Copy link
Member

Did you ensure that the error behavior is the same?

@dfordivam
Copy link
Collaborator Author

We have a bootstrap test boostrap.yaml. It currently just runs the local script. I guess we could:

* inspect commit/branch and then actually use the full url to the `bootstrap-haskell.ps1` at that commit to fetch it and install it via the new command

Done. It worked fine.

Run $ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop
$ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop
$curDir = Get-Location
Write-Host "Current Working Directory: $curDir"
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; try { & ([ScriptBlock]::Create((Invoke-WebRequest https://raw.githubusercontent.com/haskell/ghcup-hs/c7946174d65af8d1afffcec72adc51d2228c91ad/scripts/bootstrap/bootstrap-haskell.ps1 -UseBasicParsing))) -InstallDir ${GITHUB_WORKSPACE} -BootstrapUrl ("{0}/scripts/bootstrap/bootstrap-haskell" -f $curDir) -InBash -Msys2Env "MINGW64" } catch { Write-Error $_ }

@hasufell hasufell merged commit 8fa61c6 into haskell:master Jul 20, 2024
47 checks passed
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.

Use curl-free version by default on windows?
2 participants