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 for skipping checkout of existing repositories #96

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

leorochael
Copy link
Contributor

@leorochael leorochael commented Feb 10, 2017

Checking out lots of addon repositories (or even the huge odoo repo itself) can take a long time, and sometimes we just want to re-run buildout for some other purpose. Examples include:

  • rebuilding odoo.cfg
  • adding another python package in eggs =
  • temporarily working on an addon in a branch that is different than the one specified in buildout.cfg but wanting to re-run buildout for one of the above reasons.

Some of these can be achieved by using the buildout:offline setting (i.e. by running bin/buildout -o) but others can't. And even the offline run can be faster by skipping the checkouts.

This PR adds an option for skipping the checkout of a repo if the target already exists.

It's mostly to be used from the buildout command line, like:

 bin/buildout odoo:skip-checkout=true

@petrus-v
Copy link

Thanks for this PR, reading your description I wonder why you are not using buildout offline option?

bin/buildout -c buildout.cfg -o

@leorochael
Copy link
Contributor Author

Thanks for this PR, reading your description I wonder why you are not using buildout offline option?

I am, for some of the cases. But there are some other cases where I'd like to skip checkout even in non-offline mode. I've clarified some more use cases in the PR description.

@coveralls
Copy link

coveralls commented Feb 13, 2017

Coverage Status

Coverage increased (+0.07%) to 86.516% when pulling 78f8cfb on leorochael:leorochael-skip-checkout into f14b801 on anybox:master.

Allow the main server part to be skipped  as well.
@coveralls
Copy link

coveralls commented Feb 14, 2017

Coverage Status

Coverage increased (+0.07%) to 86.516% when pulling 60c1b6e on leorochael:leorochael-skip-checkout into f14b801 on anybox:master.

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

Successfully merging this pull request may close these issues.

3 participants