commit: cfcb8488eda38976d731c8d0ae64a57415f42443
parent 9d799aff97163a1cce24c2bd1551a085fac7a8f6
Author: QMK Bot <hello@qmk.fm>
Date: Wed, 29 Jan 2025 19:18:02 +0000
Merge remote-tracking branch 'origin/master' into develop
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py
@@ -99,6 +99,13 @@ def _validate_build_target(keyboard, info_data):
if info_file != keyboard_json_path:
_log_error(info_data, f'Invalid keyboard.json location detected: {info_file}.')
+ # No keyboard.json next to info.json
+ for conf_file in config_files:
+ if conf_file.name == 'keyboard.json':
+ info_file = conf_file.parent / 'info.json'
+ if info_file.exists():
+ _log_error(info_data, f'Invalid info.json location detected: {info_file}.')
+
# Moving forward keyboard.json should be used as a build target
if keyboard_json_count == 0:
_log_warning(info_data, 'Build marker "keyboard.json" not found.')