Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuist cache should allow pre-built local cache to be sync with the cloud #6291

Open
danibachar opened this issue May 15, 2024 · 2 comments
Open
Labels
type:need/problem Report needs or problems you came across that are not bugs

Comments

@danibachar
Copy link
Collaborator

danibachar commented May 15, 2024

What problem or need do you have?

Continue the discussion in this Slack thread.

Run tuist cache before adding the cloud configuration to the Config.swift and built the cache locally.
Added the remote configuration to the Config.swift, and authenticate with Tuist Cloud (tuist cloud auth.
Run tuist cache results in a "Cache already filled" and no upload process to the cloud takes place, the cloud cache remains empty.

tuist clean which empties the local cache solves it, is the caching it again will "link" with the cloud from the beginning.
But it would be nice, since caching is a long process, to allow uploading already cached binaries from local workstations to the cloud.

Potential solution

We should allow updating the remote cache, even a force push could be useful

macOS version

14.4.1

Tuist version

4.12.1

Xcode version

15.3

@danibachar danibachar added the type:need/problem Report needs or problems you came across that are not bugs label May 15, 2024
@pepicrft
Copy link
Contributor

For anyone coming across this issue in the future. You can run rm -rf ~/.cache/tuist-cloud and warm the cache again. It's a bit annoying because you go through the compilation cycle.

@danieleformichelli
Copy link
Collaborator

I think this is a very niche corner case with a good enough workaround, I wouldn't add code and/or complexity to handle this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:need/problem Report needs or problems you came across that are not bugs
Projects
None yet
Development

No branches or pull requests

3 participants