fusesoc icon indicating copy to clipboard operation
fusesoc copied to clipboard

Check-out of remote cores on a per-repo basis ?

Open krishnan-gopal opened this issue 4 years ago • 3 comments

Hi

Is it possible to have fusesoc check-out remote cores without landing up with multiple copies of the same repository and version ?

Currently, fusesoc checks out a repository for every remote core even when their repo URL and version are exactly the same. I understand that fusesoc has been implemented with a 'one core per repo' perspective, but such an enhancement could save a lot of space, when a repository has multiple cores.

krishnan-gopal avatar Jul 01 '20 08:07 krishnan-gopal

The behavior you're outlining is a good optimization, but it's currently not implemented. We'd appreciate a pull request, however!

imphil avatar Jul 01 '20 09:07 imphil

Ok, I will look into this

krishnan-gopal avatar Jul 01 '20 09:07 krishnan-gopal

The problem with this arises when you have multiple cores and e.g. want version 1.2 of one core and 4.1 of another. Then you need to do multiple checkouts anyway and keep track of which version that corresponds to a certain core. I don't think the complexity is worth the savings in disk space and downloads.

What you probably want to do instead in these cases is to add the repo as a library with fusesoc library add

olofk avatar Feb 26 '21 09:02 olofk