Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 11, 2025

The generate_external_apps_matrix_json target uses jq for JSON processing but had no validation that jq is installed, leading to cryptic failures.

Changes

  • Extended .precheck target to validate jq availability using command -v jq
  • Added error message with platform-specific installation instructions (Ubuntu/Debian, macOS, generic)
  • Follows existing error handling pattern in .precheck for consistency

Example

When jq is missing:

**********************************************************************
ERROR: jq is not installed!

jq is required for JSON processing in this Makefile.
Please install jq:
  - Ubuntu/Debian: sudo apt-get install jq
  - macOS: brew install jq
  - Other: https://jqlang.github.io/jq/download/
**********************************************************************

All targets depending on .precheck (including generate_external_apps_matrix_json) now validate jq before execution.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

printminion-co and others added 7 commits November 10, 2025 13:18
Added an entry to the .gitignore file to permit the inclusion of local development configuration files, enhancing the flexibility for developers working in local environments.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
This commit introduces a new target to generate an external apps matrix in JSON format, enhancing the build process by providing a structured output of app configuration details.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
…stderr

Ensure that the message indicating the generation of the external apps matrix YAML file is sent to standard error for better visibility during execution.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
This change modifies the Makefile to sort the list of configured apps alphabetically before iterating through them. This ensures a consistent order when processing the apps.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
- Introduced SPECIAL_BUILD_APPS variable to define apps with custom build logic.
- Updated build targets to include special build targets in the build_all_external_apps target.
- Adjusted app validation and configuration checks to account for special build apps.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
Added a .precheck target to ensure required directories and files exist before executing build tasks. This improves error handling and user guidance when the Makefile is run from an incorrect directory.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
Copilot AI changed the title [WIP] Address feedback on build matrix check implementation Add jq availability check to .precheck target Nov 11, 2025
Copilot AI requested a review from printminion-co November 11, 2025 12:42
@printminion-co printminion-co changed the base branch from mk/dev/add_build_matrix_check to mk/fix/app_config_password_policy November 11, 2025 12:55
@printminion-co printminion-co force-pushed the mk/fix/app_config_password_policy branch 3 times, most recently from 148b2e4 to 300b916 Compare November 11, 2025 13:43
@printminion-co printminion-co deleted the copilot/sub-pr-90 branch November 11, 2025 13:43
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