diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000000..c91c3f38b7 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[net] +git-fetch-with-cli = true diff --git a/.circleci/config.yml b/.circleci/config.yml index 7f623b6589..4dfeb580d3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,10 @@ commands: steps: - run: name: Download Substrate Dependencies - command: sudo apt-get update && sudo apt-get install -y git clang curl libssl-dev + command: | + sudo apt-get update \ + && sudo apt-get install -y git clang curl libssl-dev \ + && git config --global url."https://github.com/paritytech/".insteadOf https://github.com/paritytech// cargo_audit_setup: description: Install cargo-audit steps: @@ -60,8 +63,7 @@ commands: curl https://sh.rustup.rs -sSf | sh -s -- -y \ --default-toolchain "$RUSTC_TOOLCHAIN" \ -c clippy rustfmt \ - -t wasm32-unknown-unknown \ - --profile minimal + -t wasm32-unknown-unknown - restore_cache: key: cargo-package-cache-{{ checksum "Cargo.lock" }}-{{ arch }} - sccache_setup diff --git a/.dockerignore b/.dockerignore index 796d5fbe18..b850a571a0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ +/.cargo/config.toml /target /Dockerfile diff --git a/.gitignore b/.gitignore index edfb46c29b..acf8dc12c3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,9 +6,6 @@ .DS_Store -# The cache for docker container dependency -.cargo - # The cache for chain data in container .local