Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
Set cache dir when running sidecar with cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerwilliams committed Nov 30, 2020
1 parent 557e902 commit 0127322
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/buildbuddy/buildbuddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func main() {
}
if remoteCacheFlag != "" && remoteExecFlag == "" {
sidecarArgs = append(sidecarArgs, remoteCacheFlag)
// Also specify as disk cache directory.
diskCacheDir := filepath.Join(bbHome, "filecache")
sidecarArgs = append(sidecarArgs, fmt.Sprintf("--cache_directory=%s", diskCacheDir))
}

if len(sidecarArgs) > 0 {
Expand Down

0 comments on commit 0127322

Please sign in to comment.