-
Notifications
You must be signed in to change notification settings - Fork 68
[imp] add sparse checkout #94
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
base: master
Are you sure you want to change the base?
Conversation
|
@sbidoul would you mind having a look? |
legalsylvain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi thanks for your contribution.
- could you update the README, introducing sparse_checkout feature. Thanks !
20c345e to
b9a81aa
Compare
b9a81aa to
def9307
Compare
|
thanks @legalsylvain , I've updated the |
|
@sbidoul might I have your review on this one? |
legalsylvain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. I think this feature interesting.
However, I think we should have an option to enable or ignore it during the gitaggregate command.
For me, this feature is interesting in production, but prevent you to contribute in dev environment. Or did I missed something ? how do you work with that ?
thanks !
|
Thanks @legalsylvain , I'm not sure about contributing in development per your comment. Could you elaborate? |
|
maybe my question is not relevant. Let see what other reviewer says. |
|
@legalsylvain This feature is useful if you use git-aggregator to collect repos during a Docker image build. It probably should not be used if you use git-aggregator for contributing locally. |
OK. So, it should be great to have a --no-sparse-checkout / --sparse-checkout option on git aggregate. otherwise, it will be not be possible to contribute with the repos.yml that contains sparse-checkout. |
|
@legalsylvain you means an attribute in the repo.yaml file per "directory" or "repo"? Right now sparse-checkout will only be used with a flag and not the default behavior |
|
No I mean a --no-sparse-checkout option in the gitaggregate, to ignore the sparsecheckout configuration present in the repos.yml. sorry if I'm not clear. What I undestand is : allow to checkout, when deploying your odoo in production, only oca/web/web_responsive module. Right ?
But if we use this repos.yml file in developpement, when we gitaggregate, we want to have the possibility to clone all the repos, and not only sparse checkouted modules. Otherwise, it is not possible to contribute. Did I missed something ? |
|
You are right, I let me add that flag |
|
@legalsylvain I've added |
legalsylvain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks !
code review / no test.
sometimes, there can be a need to only keep certain directories after aggregate, e.g using
hatch-odoofor instance and we want to install all modules included inwebthis changed add a
sparse-checkoutattribute to keep what's specified.