diff --git a/dist/restore/index.js b/dist/restore/index.js index dfa51d6..6f75548 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -88396,12 +88396,6 @@ class CacheConfig { self.keyFiles = sort_and_uniq(keyFiles); key += `-${lockHash}`; self.cacheKey = key; - // The original action (https://github.com/Swatinem/rust-cache) cached the entire CARGO_HOME, - // but cleaned out CARGO_HOME/bin of all binaries that weren't built by the CI run itself. - // This had the unfortunate side-effect of nuking rustup/cargo/rustc etc from self-hosted runners. - // (This is usually not a problem on hosted runners, since you get a fresh container on each run). - // So we edit this action to not cache bin/, and to bypass cleaning that directory out. - // TODO: Create an upstream patch for this, controlled by an option. self.cachePaths = [ external_path_default().join(config_CARGO_HOME, "registry"), external_path_default().join(config_CARGO_HOME, "git"), diff --git a/dist/save/index.js b/dist/save/index.js index 7332ee8..5d402e5 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -88396,12 +88396,6 @@ class CacheConfig { self.keyFiles = sort_and_uniq(keyFiles); key += `-${lockHash}`; self.cacheKey = key; - // The original action (https://github.com/Swatinem/rust-cache) cached the entire CARGO_HOME, - // but cleaned out CARGO_HOME/bin of all binaries that weren't built by the CI run itself. - // This had the unfortunate side-effect of nuking rustup/cargo/rustc etc from self-hosted runners. - // (This is usually not a problem on hosted runners, since you get a fresh container on each run). - // So we edit this action to not cache bin/, and to bypass cleaning that directory out. - // TODO: Create an upstream patch for this, controlled by an option. self.cachePaths = [ external_path_default().join(CARGO_HOME, "registry"), external_path_default().join(CARGO_HOME, "git"), diff --git a/src/config.ts b/src/config.ts index 832cbf3..adb03e2 100644 --- a/src/config.ts +++ b/src/config.ts @@ -239,12 +239,6 @@ export class CacheConfig { key += `-${lockHash}`; self.cacheKey = key; - // The original action (https://github.com/Swatinem/rust-cache) cached the entire CARGO_HOME, - // but cleaned out CARGO_HOME/bin of all binaries that weren't built by the CI run itself. - // This had the unfortunate side-effect of nuking rustup/cargo/rustc etc from self-hosted runners. - // (This is usually not a problem on hosted runners, since you get a fresh container on each run). - // So we edit this action to not cache bin/, and to bypass cleaning that directory out. - // TODO: Create an upstream patch for this, controlled by an option. self.cachePaths = [ path.join(CARGO_HOME, "registry"), path.join(CARGO_HOME, "git"),