viash-io / viash

script + metadata = standalone component
https://viash.io
GNU General Public License v3.0
39 stars 2 forks source link

[FEATURE] Cache repositories #694

Closed rcannood closed 6 months ago

rcannood commented 7 months ago

Feature summary

Allow viash to cache repositories within the same viash ns build, but potentially also outside of it

Feature description

Right now, using the same repository in multiple dependencies seems to cause Viash to clone the repository multiple times. Ideally, the repository should only need to be cloned once per viash ns build, or even fewer times if we allow cross-build caching.

Why is this feature beneficial?

Large repositories might take a while to clone.

Alternatives considered

No response

Possible solution

No response

Confirmation

Grifs commented 6 months ago

I'd expect that repository caching within the same viash ns build would work already. If you have an example where it isn't the case I'm happy to take a look what's going on.

Grifs commented 6 months ago

The code is fundamentally changed in Viash 0.9, so I expect any issues that was present should be fixed, or else replaced with different and unrelated new issues ;)