From b981a94fdd79adfc0cb73a6bf0c409c920575746 Mon Sep 17 00:00:00 2001 From: Yating Jing Date: Fri, 31 Mar 2023 14:40:12 +0000 Subject: [PATCH 1/2] Test adding the tmp dir for lint-rust error. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c760f13a55..0dae788fcb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -296,6 +296,8 @@ jobs: # You can run `cargo clippy --all-targets --manifest-path tensorboard/data/server/Cargo.toml --fix` to fix all Clippy complaints. # This will only apply `MachineApplicable` fixes (https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html), so some modifications may need to be done manually. run: cargo clippy --all-targets --manifest-path tensorboard/data/server/Cargo.toml -- -D warnings + - name: 'Create tmp dir (test)' + run: mkdir -p /tmp/cargo-raze/doesnt/exist/ - name: 'Check cargo-raze freshness' run: | rm -rf third_party/rust/ From 0fa66007d1397e17bfed0b4a7dee16855b8d2b62 Mon Sep 17 00:00:00 2001 From: Yating Jing Date: Fri, 31 Mar 2023 14:46:23 +0000 Subject: [PATCH 2/2] separate mkdir step is unnecessary --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0dae788fcb..553aca8eb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -296,10 +296,9 @@ jobs: # You can run `cargo clippy --all-targets --manifest-path tensorboard/data/server/Cargo.toml --fix` to fix all Clippy complaints. # This will only apply `MachineApplicable` fixes (https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html), so some modifications may need to be done manually. run: cargo clippy --all-targets --manifest-path tensorboard/data/server/Cargo.toml -- -D warnings - - name: 'Create tmp dir (test)' - run: mkdir -p /tmp/cargo-raze/doesnt/exist/ - name: 'Check cargo-raze freshness' run: | + mkdir -p /tmp/cargo-raze/doesnt/exist/ rm -rf third_party/rust/ (cd tensorboard/data/server/ && cargo fetch && cargo raze) git add .