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

Appveyor builds fail looking for Curl #66

Open
epage opened this issue Mar 25, 2017 · 5 comments
Open

Appveyor builds fail looking for Curl #66

epage opened this issue Mar 25, 2017 · 5 comments

Comments

@epage
Copy link

epage commented Mar 25, 2017

Example

If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
  $Env:PATH += ';C:\msys64\mingw64\bin'
} ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
  $Env:PATH += ';C:\msys64\mingw32\bin'
}
curl -sSf -o rustup-init.exe https://win.rustup.rs/
'curl' is not recognized as an internal or external command,
operable program or batch file.
Command exited with code 1

output for cobalt.rs

@epage
Copy link
Author

epage commented Mar 25, 2017

I suspect it is related to the latest platform update

I found an appveyor support issue about curl not being found. It seems git previously put curl in the default path. That got me wondering if the paths used in trust were correct

The above issue mentions using git's mingw

C:\Program Files\Git\mingw64\bin

Appveyor's documentation for the build environment lists these paths

C:\MinGW\bin
C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1
C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1
# etc

I've not had a chance to try changing the path to see if they fix my builds.

@epage
Copy link
Author

epage commented Mar 25, 2017

I just got a successful build with the workaround specified in appveyor/ci#1426

I added the line

$Env:PATH += ';C:\msys64\usr\bin'

Unconditionally to the path

@epage
Copy link
Author

epage commented Mar 25, 2017

My PR to fix cobalt.rs: cobalt-org/cobalt.rs#205

@epage
Copy link
Author

epage commented Mar 26, 2017

Someone brought up the idea of using Invoke-WebRequest

@japaric
Copy link
Owner

japaric commented Mar 27, 2017

Someone brought up the idea of using Invoke-WebRequest

I have used that before and it was unreliable. Sometimes I got download / authentication failures when downloading rustup. I have had zero issues with curl.

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

No branches or pull requests

2 participants