huggingface/tgi-gaudi

Cargo error clap

muhammad-asn opened this issue · 1 comments

System Info

  • Ubuntu 22.04
  • Docker 25.0.3
  • Rust 1.74

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

I've got this error related cargo clap when trying to docker build

42.26 error: package `clap v4.5.0` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.71.1
42.26 Either upgrade to rustc 1.74 or newer, or use
42.26 cargo update -p clap@4.5.0 --precise ver
42.26 where `ver` is the latest version of `clap` supporting rustc 1.71.1
42.28 thread 'main' panicked at 'Exited with status code: 101', /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-chef-0.1.62/src/recipe.rs:204:27
42.28 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------
Dockerfile:23
--------------------
  21 |
  22 |     COPY --from=planner /usr/src/recipe.json recipe.json
  23 | >>> RUN cargo chef cook --release --recipe-path recipe.json
  24 |
  25 |     COPY Cargo.toml Cargo.toml

Git: https://github.com/huggingface/tgi-gaudi/commits/v1.2-release/
Latest commit: 2a7a967

Expected behavior

It should installed perfectly without any issue

The issue has been solved. I need to upgrade the Dockerfile to use the cargo-chef to version 1.74