From 711a320c4912f1105fc0c9e6d0ab5a3ed7700d27 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Tue, 9 May 2023 11:18:04 -0700 Subject: [PATCH] fix: Fix cache toggle not working. --- package.json | 2 +- src/cargo.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 80bc0a7..b66783f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moonrepo/setup-rust", - "version": "0.6.0", + "version": "0.6.1", "description": "A GitHub action for setting up Rust and Cargo.", "main": "dist/index.js", "scripts": { diff --git a/src/cargo.ts b/src/cargo.ts index 55bf0c8..4d23112 100644 --- a/src/cargo.ts +++ b/src/cargo.ts @@ -14,7 +14,7 @@ export const CARGO_HOME = process.env.CARGO_HOME ?? path.join(os.homedir(), '.ca export const WORKSPACE_ROOT = process.env.GITHUB_WORKSPACE ?? process.cwd(); -export const CACHE_ENABLED = core.getBooleanInput('cache') || cache.isFeatureAvailable(); +export const CACHE_ENABLED = core.getBooleanInput('cache') && cache.isFeatureAvailable(); export async function downloadAndInstallBinstall(binDir: string) { core.info('cargo-binstall does not exist, attempting to install');