Skip to content

Commit

Permalink
Merge pull request #153 from DeterminateSystems/colemickens/no-cache
Browse files Browse the repository at this point in the history
[FH-435] cmd: apply: use --option narinfo-cache-negative-ttl 0
  • Loading branch information
grahamc authored Nov 6, 2024
2 parents 643c17b + 60afd91 commit 2d0af28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cli/cmd/apply/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ impl CommandExecute for ApplySubcommand {
if self.use_scoped_token {
let mut nix_args = vec![
"copy".to_string(),
"--option".to_string(),
"narinfo-cache-negative-ttl".to_string(),
"0".to_string(),
"--from".to_string(),
self.cache_addr.to_string(),
resolved_path.store_path.clone(),
Expand Down Expand Up @@ -310,6 +313,9 @@ async fn apply_path_to_profile(
"--max-jobs".to_string(),
"0".to_string(),
"--profile".to_string(),
"--option".to_string(),
"narinfo-cache-negative-ttl".to_string(),
"0".to_string(),
profile_path
.to_str()
.ok_or(FhError::InvalidProfile)?
Expand Down

0 comments on commit 2d0af28

Please sign in to comment.