Skip to content

Adding build-type commands in build_native.sh#34

Merged
GoutamD2905 merged 1 commit intodevelopfrom
feature/update_build_native.sh
Mar 12, 2026
Merged

Adding build-type commands in build_native.sh#34
GoutamD2905 merged 1 commit intodevelopfrom
feature/update_build_native.sh

Conversation

@sowmiyachelliah
Copy link
Copy Markdown
Contributor

Adding build-type commands in build_native.sh

@sowmiyachelliah sowmiyachelliah requested a review from a team as a code owner March 12, 2026 06:55
Copilot AI review requested due to automatic review settings March 12, 2026 06:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new commands build type to build_native.sh, allowing users to specify arbitrary build commands in a JSON config file, and makes library installation skip gracefully when no library output path is configured.

Changes:

  • New build_component_commands() function that reads and executes build commands from the JSON config
  • Skip library installation when LIB_PATH is not set or is "null"
  • Wire up the commands build type in the main() case statement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

command=$(expand_path "$command")

log " [$((i+1))/$cmd_count] Executing: $command"
if eval "$command"; then
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

Using eval on commands read from a JSON config file is a security risk if the config file could be tampered with or contain unexpected content. Consider whether you could use bash -c "$command" or even direct execution without eval. If the commands don't require shell features like pipes or redirects, you could use an array-based approach to avoid shell injection. If eval is intentional to support full shell syntax, this should at least be documented as a security consideration.

Suggested change
if eval "$command"; then
if bash -c "$command"; then

Copilot uses AI. Check for mistakes.
@GoutamD2905 GoutamD2905 merged commit f42cb28 into develop Mar 12, 2026
11 checks passed
@GoutamD2905 GoutamD2905 deleted the feature/update_build_native.sh branch March 12, 2026 07:10
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants