mwcproject / mwc713

A wallet that makes it easy to send, store, and swap MWC.
Apache License 2.0
4 stars 17 forks source link

docker build fails with "error: failed to parse lock file at: /usr/src/wallet713/Cargo.lock" #6

Open dennisvanderpool opened 3 years ago

dennisvanderpool commented 3 years ago

Sending build context to Docker daemon 1.169MB Step 1/20 : FROM rust:1.32 as builder ---> 8f1e4bb89360 Step 2/20 : RUN set -ex && apt-get update && apt-get --no-install-recommends --yes install clang libclang-dev llvm-dev libncurses5 libncursesw5 cmake git ---> Using cache ---> 5627a83a0872 Step 3/20 : WORKDIR /usr/src ---> Using cache ---> 1fee417f75eb Step 4/20 : RUN USER=root cargo new --bin wallet713 ---> Using cache ---> e0ac13656961 Step 5/20 : WORKDIR /usr/src/wallet713 ---> Using cache ---> 572ffb9713d4 Step 6/20 : COPY ./Cargo.lock ./Cargo.lock ---> 5a52196e4967 Step 7/20 : COPY ./Cargo.toml ./Cargo.toml ---> 22f22c13373e Step 8/20 : RUN cargo build --release ---> Running in 617c668f401d error: failed to parse lock file at: /usr/src/wallet713/Cargo.lock

Caused by: invalid serialized PackageId for key package.dependencies The command '/bin/sh -c cargo build --release' returned a non-zero code: 101

dennisvanderpool commented 3 years ago

Got it fixed by changing FROM rust:1.32 as builder to FROM rust:latest as builder

But now I get another error:

 Compiling mwc713 v4.3.1 (/usr/src/wallet713)
error: couldn't read src/zip/main.rs: No such file or directory (os error 2)

error: aborting due to previous error

error: could not compile `mwc713`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed