Repository: exonum/exonum (language: rust)

Issue:
error: failed to compile exonum-cryptocurrency-advanced v0.8.0 E0433
https://github.com/exonum/exonum/blob/8120e98251d4a7760688e3636645b8b87f2ebe9c/examples/cryptocurrency-advanced/docker/Dockerfile#L19


   Compiling params v0.8.0
   Compiling exonum_sodiumoxide v0.0.17
error[E0433]: failed to resolve. Could not find `_core` in `failure`
  --> exonum/src/storage/error.rs:18:10
   |
18 | #[derive(Fail, Debug, Clone)]
   |          ^^^^ Could not find `_core` in `failure`

error[E0433]: failed to resolve. Could not find `_core` in `failure`
  --> exonum/src/storage/proof_map_index/proof.rs:97:17
   |
97 | #[derive(Debug, Fail)]
   |                 ^^^^ Could not find `_core` in `failure`

error[E0433]: failed to resolve. Could not find `_core` in `failure`
  --> exonum/src/api/mod.rs:46:10
   |
46 | #[derive(Fail, Debug)]
   |          ^^^^ Could not find `_core` in `failure`

error[E0433]: failed to resolve. Could not find `AsFail` in `failure`
  --> exonum/src/api/mod.rs:46:10
   |
46 | #[derive(Fail, Debug)]
   |          ^^^^ Could not find `AsFail` in `failure`

error[E0433]: failed to resolve. Could not find `_core` in `failure`
   --> exonum/src/events/noise/wrapper.rs:168:10
    |
168 | #[derive(Fail, Debug, Clone)]
    |          ^^^^ Could not find `_core` in `failure`

#!/usr/bin/env bash

error: aborting due to 5 previous errors
FROM ubuntu:16.04

ENV ROCKSDB_LIB_DIR=/usr/lib/x86_64-linux-gnu

For more information about this error, try `rustc --explain E0433`.
error: failed to compile `exonum-cryptocurrency-advanced v0.8.0 (file:///usr/src/exonum/examples/cryptocurrency-advanced/backend)`, intermediate artifacts can be found at `/usr/src/exonum/target`



Discussion / hints:
@aidoskz Thanks for creating an issue. This is a problem with `cargo update`, I suppose we should commit Cargo.lock file.

Fix patch:
diff --git a/examples/cryptocurrency-advanced/docker/Dockerfile b/examples/cryptocurrency-advanced/docker/Dockerfile
index b5e099da04..8f8f3b81e5 100644
--- a/examples/cryptocurrency-advanced/docker/Dockerfile
+++ b/examples/cryptocurrency-advanced/docker/Dockerfile
@@ -7,13 +7,13 @@ RUN apt-get update \
   && apt-get install -y curl git gcc cpp \
   libssl-dev pkg-config libsodium-dev libsnappy-dev librocksdb-dev
 
-RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=1.26.1
+RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable
 
 RUN curl -sL https://deb.nodesource.com/setup_8.x | bash \
   && apt-get install -y nodejs
 
 WORKDIR /usr/src
-RUN git clone --branch v0.8 https://github.com/exonum/exonum.git \
+RUN git clone --branch v0.9.4 https://github.com/exonum/exonum.git \
   && mv /root/.cargo/bin/* /usr/bin \
   && cd exonum/examples/cryptocurrency-advanced/backend \
   && cargo update && cargo install \


Test patch: