diff --git a/cmd/buildbuddy/buildbuddy.go b/cmd/buildbuddy/buildbuddy.go index 98f6db6..26de988 100644 --- a/cmd/buildbuddy/buildbuddy.go +++ b/cmd/buildbuddy/buildbuddy.go @@ -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 {