google-apis-rs / google-cloud-rs

Asynchronous Rust bindings for Google Cloud Platform APIs.
176 stars 48 forks source link

Docker build - failed to run custom build command #54

Closed plippe closed 3 years ago

plippe commented 3 years ago

Hi,

I am building a web application that communicates with Google's Datastore. When I packaged it as a Docker image, I encountered an "error".

error: failed to run custom build command for `google-cloud v0.2.1`

Caused by:
  process didn't exit successfully: `/opt/repository/target/release/build/google-cloud-2e06fd0cd14d951b/build-script-build` (exit code: 1)
  --- stderr
  error: 'rustfmt' is not installed for the toolchain '1.51.0-x86_64-unknown-linux-gnu'
  To install, run `rustup component add rustfmt`

Following the hint above fixed the issue.

rustup component add rustfmt

This isn't really an issue, but a heads up for others like me.