Skip to content

Conversation

@cjreynol
Copy link
Collaborator

This keeps all of the directory creation for cvd fetch together, and
exposes the dependency of the Downloaders class.

Also, relax the condition for CanCache to allow errors in
CanHardLink to simply disable caching, instead of terminating
execution. This allows cases where the cache directory has not been
created like in downloaders_test.cpp.

The `getuid()` call was leftover from when the substitution pattern had
two holes for `/tmp/cvd/` and `<uid>` before `/cache`.

reference: google@f4f0f10
This keeps all of the directory creation for `cvd fetch` together, and
exposes the dependency of the `Downloaders` class.

Also, relax the condition for `CanCache` to allow errors in
`CanHardLink` to simply disable caching, instead of terminating
execution.  This allows cases where the cache directory has not been
created, like in `downloaders_test.cpp`.
@cjreynol cjreynol self-assigned this Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant