Repository navigation
Conversation
|
I'm not sure what The Does |
|
No, |
|
Yes, your understanding is correct. Can you expand on why you want this capability? I believe most or all package managers install the dependencies of their dependencies. To opt out of that could leave the setup in an incomplete, broken state. |
|
That's a fair question, and why I'd want to leave the default how it is but allow the configuration to disable on a by-repo basis. Basically if I have a repo of config files, I want to pull that down into a project, but that config file repo also has a dependency on the same repo as the originating project, so it's a double-dependency. So something like: In that example, for my project I may not want service A and B to be redundant if I'm working in a global folder that has all my services with a shared core and config, or I could have a separate repository for service A and service B where I do want them to clone the configs for separate deployments. You might say "well this is dumb and poorly architected" and you'd be correct, but sometimes you inherit a building you didn't design 🙂 As I said, I don't want the default behavior to change, but just to allow flexibility when needed for rare cases. If you disagree that's understandable too. |
|
Thanks for the explanation! I will think about it some more but this does feel like a niche use case to me. I would probably manage that situation using the |
|
Oh very interesting with the groups comment, I had missed that as a possibility! I'll explore that some too, thanks for the tip 🙂 |
|
Hi, I apologize for the delay in responses, things keep getting in the way! Groups might perhaps work, except if there's a repository with subrepos in a gitman.yml and you don't want anything cloned. The current behavior is if a group is defined as the default_group: empty
groups:
- name: empty
members: nullI would expect this to not clone any groups by default, but it will clone all groups. I can put out a separate PR for this behavior if you agree with my proposal for letting default groups be empty and prevent the rest of the groups from being cloned. |
|
Sure, a separate PR for respecting an empty group sounds appropriate. |
When doing
gitman update, there's an option for--recurse(which, this could probably be documented better, as it's only mentioned directly in the API page: https://gitman.readthedocs.io/en/latest/interfaces/api/ )Sometimes I have multiple repositories but only want to recursively update some of them, and this is the functionality in this PR. There's a new flag in
gitman.ymlrepositories that will override the--recurseflag if it is present, and default back to that flag if not present. That means existing functionality is unchanged, but users can choose to either recurse into directories of their choosing, or recurse into all except directories of their choosing.