diff --git a/Makefile b/Makefile index afb961bc..67a8fc9a 100644 --- a/Makefile +++ b/Makefile @@ -45,10 +45,6 @@ dockerclippy: clippy: > cargo clippy --no-deps --all-targets --all-features -- -D warnings -.PHONY: clippyfix -clippyfix: -> cargo clippy --fix --lib -p organic --all-features - .PHONY: test test: > cargo test --no-default-features --features compare --no-fail-fast --lib --test test_loader -- --test-threads $(TESTJOBS) diff --git a/docker/organic_clippy/Makefile b/docker/organic_clippy/Makefile index 9546365a..6e9fb21d 100644 --- a/docker/organic_clippy/Makefile +++ b/docker/organic_clippy/Makefile @@ -25,13 +25,13 @@ ifdef REMOTE_REPO else @echo "REMOTE_REPO not defined, not removing from remote repo." endif - docker volume rm cargo-cache + docker volume rm rust-cache cargo-cache # NOTE: This target will write to folders underneath the git-root .PHONY: run run: build - docker run --rm --init --read-only --mount type=tmpfs,destination=/tmp -v "$$(readlink -f ../../):/source" --workdir=/source --mount source=cargo-cache,target=/usr/local/cargo/registry $(IMAGE_NAME) + docker run --rm --init --read-only --mount type=tmpfs,destination=/tmp -v "$$(readlink -f ../../):/source:ro" --workdir=/source --mount source=cargo-cache,target=/usr/local/cargo/registry --mount source=rust-cache,target=/target --env CARGO_TARGET_DIR=/target $(IMAGE_NAME) .PHONY: shell shell: build - docker run --rm -i -t --entrypoint /bin/sh --mount type=tmpfs,destination=/tmp -v "$$(readlink -f ../../):/source" --workdir=/source --mount source=cargo-cache,target=/usr/local/cargo/registry $(IMAGE_NAME) + docker run --rm -i -t --entrypoint /bin/sh --mount type=tmpfs,destination=/tmp -v "$$(readlink -f ../../):/source:ro" --workdir=/source --mount source=cargo-cache,target=/usr/local/cargo/registry --mount source=rust-cache,target=/target --env CARGO_TARGET_DIR=/target $(IMAGE_NAME)