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

Can I use local cache only? #61

Closed
muukii opened this issue Apr 11, 2017 · 10 comments
Closed

Can I use local cache only? #61

muukii opened this issue Apr 11, 2017 · 10 comments

Comments

@muukii
Copy link

muukii commented Apr 11, 2017

I want to use Rome as local cache only.
That is useful when I using git-worktree.

@tmspzz
Copy link
Owner

tmspzz commented Apr 11, 2017

This is certainly doable.

However how do you see this working with the remote cache?

  1. How would the list command work? Should a cache specifier be added (--local | --remote=s3)?
  2. Do you expect any changes in upload/download behaviour when both a local and a remote cache are specified?
  3. If just a local cache is specified how should upload/download --skip-local-cache work? Do nothing?

@tmspzz
Copy link
Owner

tmspzz commented Apr 11, 2017

@muukii If you need to use the feature "right now" as a work-around you can just provide fake AWS credentials and a fake name for the S3-Bucket. Then use the normal upload/download commands. Rome will fail uploading to the network but should copy to/from your local cache.

@muukii
Copy link
Author

muukii commented Apr 11, 2017

@blender
Thank you. I'll try that work-around.

I think that Rome should have --local-only option.
if Rome received --local-only option then cache to local only.
if Rome received no option then cache to both remote and local.

@caynan
Copy link

caynan commented Apr 20, 2017

I would love to see this feature, I'm willing to help implement it, I just need some initial guidance.

@tmspzz
Copy link
Owner

tmspzz commented Apr 20, 2017

@muukii @caynan I'm at work on it but it's requiring some major code refactoring to avoid a ton of duplication.

The idea i'm going for is that in your RomeFile you can specify ONLY a "local" key, at which point rome will only do things locally.

If you specify only "S3-Bucket" or both "S3-Bucket" and "local" you get the current behaviour.

@caynan Thank for the availability, you can follow the progress here: #63

@tmspzz
Copy link
Owner

tmspzz commented Apr 26, 2017

@muukii @caynan please try pre-release https://github.com/blender/Rome/releases/tag/v0.11.0.25

in your Romefile you can just specify local = some/path/ in the [Cache] section. The S3-Bucket key is now optional. If you have both keys specified you get the old behaviour.

@caynan
Copy link

caynan commented Apr 26, 2017

@blender I will try it in a bit, you're the best. I'm sorry I couldn't help you, I realized the code base is in Haskell and I don't have any knowledge of it :/

@tmspzz
Copy link
Owner

tmspzz commented Apr 26, 2017

@caynan Thanks, I am glad of your appreciation. I encourage you to try your hand at Haskell :) Let me know if you encounter any bugs with this version.

@muukii
Copy link
Author

muukii commented Apr 27, 2017

@blender whoa! Thank you! I'll try it!

@tmspzz
Copy link
Owner

tmspzz commented May 10, 2017

@tmspzz tmspzz closed this as completed May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants