Skip to content

[IMP] use check-vendor-libs action - #365

Open
hbrunn wants to merge 1 commit into
OCA:masterfrom
hbrunn:master-check-vendor-libs
Open

[IMP] use check-vendor-libs action#365
hbrunn wants to merge 1 commit into
OCA:masterfrom
hbrunn:master-check-vendor-libs

Conversation

@hbrunn

@hbrunn hbrunn commented Jul 31, 2026

Copy link
Copy Markdown
Member

This adds hbrunn/check-vendor-libs as discussed in OCA/odoo-pre-commit-hooks#191.

When applied to the website repository:

I think this should be mandatory for all v20+ repositories so that people can take care of this when migrating to that version and hopefully updating the vendored code anyways. I set the default to disabled for <18 because I don't expect anyone to care for those versions enough to add it there.

@hbrunn
hbrunn force-pushed the master-check-vendor-libs branch from 700520d to 406cff1 Compare July 31, 2026 14:36

@yajo yajo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome, thanks!

Comment thread copier.yml
type: bool

use_check_vendor_libs:
default: "{% if odoo_version < 18.0 -%}disabled{% elif odoo_version < 20.0 %}optional{% else %}mandatory{% endif %}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In practice, what's the difference between disabled and optional?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional shows you what the checker would complain about, so you can incrementally fix things and turn it to mandatory when all currently existing addons declare the origin of their vendored code

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.

2 participants