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

Option to copy the full git clone, not just the files? #247

Open
jankap opened this issue Oct 25, 2023 · 0 comments
Open

Option to copy the full git clone, not just the files? #247

jankap opened this issue Oct 25, 2023 · 0 comments

Comments

@jankap
Copy link

jankap commented Oct 25, 2023

During development, there's often a going back and forth between dependencies (e.g. libraries) and its consuming parts, let's call them app.

This paragraph is written from the app's perspective and the lib folder is the target folder of my dependencies:

I understand that there's a (global - if set so) caching directory, where peru clones all deps into. Then it copies the required files to the lib directory. Making changes in the libs then is complicated because there's not git tracking information anymore.
I understand that the option override can be used to temporarily copy files from another local location to the lib folder, but that means that

  1. the original lib has to be cloned manually somewhere
  2. there are two locations with the same file names and very similar folder structure

Number 1. is just a bit annoying, but very often the clone exists somewhere anyways, but 2. is error prone - it happens to me that I made some changes to the original lib location and at the same time to the copied lib location, because I'm working on both projects at the same time. Because debugging takes place in the lib copy, development has to take place in the original cloned location if I want to avoid manual copy & paste or folder compares

A probable fix would be to add another option materialize, or make_full_clone, or whatever, that copies the full git folder of the dependencies (which exists in the cache anyways) to the lib folder. Or maybe a flag dev or so, similar to recursive could be reasonable, too.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant