Skip to content

Commit

Permalink
fix(cache): allow force to override any cache settings
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Nov 18, 2024
1 parent 5e38be8 commit 75ee96b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/turborepo-lib/src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ impl<'a> TryFrom<OptsInputs<'a>> for CacheOpts {
let is_linked = turborepo_api_client::is_linked(inputs.api_auth);
let cache = inputs.config.cache();
let has_old_cache_config = inputs.config.remote_only()
|| inputs.config.force()
|| inputs.run_args.no_cache
|| inputs.config.remote_cache_read_only();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
source: crates/turborepo-lib/src/opts.rs
expression: cache_opts
---
Err(
OverlappingCacheOptions,
Ok(
CacheConfig {
local: CacheActions {
read: false,
write: false,
},
remote: CacheActions {
read: false,
write: false,
},
},
)

0 comments on commit 75ee96b

Please sign in to comment.