check-api: only warn for external type changes
This commit is contained in:
parent
25534177dc
commit
ee83ceb1af
1 changed files with 5 additions and 1 deletions
|
|
@ -241,7 +241,11 @@ def compare_mod(mod, old, new):
|
|||
|
||||
def compare_mod_global(mod, name, old, new):
|
||||
if old['type'] != new['type']:
|
||||
error(f'{mod}.{name} changed type: {old["type"]} -> {new["type"]}')
|
||||
if old.get('is_external'):
|
||||
# not from our code, so just warn
|
||||
warn(f'{mod}.{name} (external) changed type: {old["type"]} -> {new["type"]}')
|
||||
else:
|
||||
error(f'{mod}.{name} changed type: {old["type"]} -> {new["type"]}')
|
||||
# this prevents further comparison
|
||||
return
|
||||
desc = f'{mod}.{name}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue