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

how to update odoo.versions.yaml #6

Open
pniederlag opened this issue Feb 18, 2024 · 3 comments
Open

how to update odoo.versions.yaml #6

pniederlag opened this issue Feb 18, 2024 · 3 comments

Comments

@pniederlag
Copy link

What is best practice to move forward odoo.versions.yaml with new commits from upstream repositories?

@fkantelberg
Copy link
Member

Depends a bit on your use case. If I want a newer commit for a single repository I can remove the dict from the yaml, run init and freeze or just simply fetch a new commit and enter it manually.

If you want to have a newer version of all repos. Delete the file, run init and freeze again.

@pniederlag
Copy link
Author

@fkantelberg thx for your feedback. Alright, then I am on the right track. Seems like having some command (or integration into update) would be nice.

Otherwise maybe this is worth to be mentioned somewhere?

@fkantelberg
Copy link
Member

Not sure if a command is really necessary otherwise there are many cases (often we only repin OCA repositories, sometimes only single ones) which can make the argument quite complex. It's easier to just use rm odoo/odoo.versions.yaml or other manual steps.

Not sure if I want to fixate/describe all possible processes because it heavily depends on your own workflows. dob just offers the tools to support your processes.

Fun fact: init passes some arguments to git-aggregator like -d or -j. These are documented in the help too. (--help) You could even repin all OCA repos using the following:

rm odoo/odoo.versions.yaml
docker compose run --rm odoo odoo init -d '*/OCA/*'
docker compose run --rm odoo odoo freeze

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

2 participants