-
Notifications
You must be signed in to change notification settings - Fork 57
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
fastly compute build fails with "EOF" #137
Comments
I dug into this: When I ran
From the above, I knew immediately that I needed to start |
Discussed offline, this is actually a bug as stderr is not being propagated, only stdout. See this. Instead, we should do something like the following: stdout, err := cmd.StdoutPipe()
if err != nil {
return err
}
stderr, err := cmd.StderrPipe()
// check and propagate stderr |
Just ran into this myself. fastly version:
|
After some digging, when running cargo within the project directory I was seeing:
Reinstalling cargo fixed the problem. |
Ran into this myself just now. Definitely agree stderr from cargo metadata should be shown. |
Just hit this myself. Very confusing. Would anyone object if I added a special case to the relevant paths to suggest a reinstall of Cargo? |
Maybe we should validate the cargo version to ensure |
Oh, it's not because Cargo got messed up, but because the |
I thought it was cargo but it looks like it is rustup actually:
From https://github.com/rust-lang/rustup/blob/master/doc/src/overrides.md#the-toolchain-file. |
I wrote some code last night to deal with this case and I will open a PR later today. |
Turns out, the toolchain section is only available in rustup 1.23.0 and higher. Fixes #137.
Turns out, the toolchain section is only available in rustup 1.23.0 and higher. Fixes #137.
Turns out, the toolchain section is only available in rustup 1.23.0 and higher. Fixes #137.
* Check the rustup version Turns out, the toolchain section is only available in rustup 1.23.0 and higher. Fixes #137. * Update pkg/compute/rust.go Co-authored-by: Mark McDonnell <Integralist@users.noreply.github.com> * Move rustup constraint to the dynamic config Suggested by @Integralist. Co-authored-by: Mark McDonnell <Integralist@users.noreply.github.com>
Btw I have
|
Also, my
|
@gaastonsr That's strange. Did you run I tested this fix using |
I did, and I got
It didn't update, I got the error:
|
@gaastonsr Thanks. Hmm, I might be misremembering about |
Version
v0.15.0
Please paste the output of
fastly version
here.What happened
Please describe the command you ran, what you expected to happen, and what happened instead.
fastly compute init --path fun
fastly compute build
I expected it to pull down necessary dependencies.
The text was updated successfully, but these errors were encountered: