Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

User mode #52

Open
wilsonehusin opened this issue Apr 4, 2022 · 3 comments
Open

User mode #52

wilsonehusin opened this issue Apr 4, 2022 · 3 comments
Labels
ux Ensures a good time when using the product
Milestone

Comments

@wilsonehusin
Copy link
Member

I thought I had written this somewhere but I couldn't find it so here goes.

In development machines, I would like to preserve the same program being used in multiple projects by not having duplicates. Currently, two projects depending on the same program of the same version and same checksum would be downloaded twice and unaware of each other. I think we should merge them.

Roughly, provided ~/.bindl/ exists, it should have:

  • programs/ where all the programs are
  • locks/ symlinks to where all locks exists in the given host

This means that the behavior of bindl {get,purge,verify} would have to take into account these path changes.

I think the default should still do what we're doing currently, until at some point user runs bindl generate hostconfig or something similar, which creates ~/.bindl/, then the behavior starts changing. But thoughts on this are welcome!

@wilsonehusin wilsonehusin changed the title Use mode User mode Apr 5, 2022
@wilsonehusin
Copy link
Member Author

Possibly relevant #37

@wilsonehusin wilsonehusin added this to the v0.1.0 milestone Apr 8, 2022
@wilsonehusin
Copy link
Member Author

I learned about os.UserCacheDir and hacked up the caches of HTTP responses. I'm not exactly proud on this initial implementation (#53), but I think this solves half (reducing network calls) of this issue while the primary one (reducing disk usage) still yet to be solved.

@wilsonehusin wilsonehusin added the ux Ensures a good time when using the product label Apr 15, 2022
@wilsonehusin
Copy link
Member Author

This should take into account bindl purge cache workflow too 😬

❯ du -h -d1 ~/.cache/bindl
21G     ~/.cache/bindl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ux Ensures a good time when using the product
Projects
None yet
Development

No branches or pull requests

1 participant