Skip to content

fix(chore): install clang in rpm-build.sh for building agentsight#107

Open
Daydreamer-Li wants to merge 1 commit intoalibaba:mainfrom
Daydreamer-Li:main
Open

fix(chore): install clang in rpm-build.sh for building agentsight#107
Daydreamer-Li wants to merge 1 commit intoalibaba:mainfrom
Daydreamer-Li:main

Conversation

@Daydreamer-Li
Copy link
Copy Markdown
Contributor

@Daydreamer-Li Daydreamer-Li commented Apr 7, 2026

Fixes #75: install clang automatically before cargo build to resolve 'failed to execute clang' error on systems without clang in PATH.

Description

Related Issue

closes # #75

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional change)
  • Performance improvement
  • CI/CD or build changes

Scope

  • cosh (copilot-shell)
  • agent-sec-core
  • os-skills
  • agentsight
  • Multiple / Project-wide

Checklist

  • I have read the Contributing Guide
  • My code follows the project's code style
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the documentation accordingly
  • For cosh: Lint passes, type check passes, and tests pass
  • For agent-sec-core (Rust): cargo clippy -- -D warnings and cargo fmt --check pass
  • For agent-sec-core (Python): Ruff format and pytest pass
  • For os-skills: Skill directory structure is valid and shell scripts pass syntax check
  • Lock files are up to date (package-lock.json / Cargo.lock)

Testing

Additional Notes

Fixes alibaba#75: install clang automatically before cargo build to resolve
'failed to execute clang' error on systems without clang in PATH.

Signed-off-by: liyuqing <liyuqing@alibaba-inc.com>
@Daydreamer-Li Daydreamer-Li requested a review from casparant as a code owner April 7, 2026 03:16
@samchu-zsl samchu-zsl changed the title fix(agentsight): add agentsight package to rpm-build.sh fix(chore): install clang in rpm-build.sh for building agentsight Apr 7, 2026
samchu-zsl

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

@samchu-zsl samchu-zsl left a comment

Choose a reason for hiding this comment

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

Using package managers other than dnf/yum in rpm-build scripts lacks legitimacy. Please provide the background for these changes.

@samchu-zsl samchu-zsl self-requested a review April 8, 2026 13:09
@samchu-zsl samchu-zsl dismissed their stale review April 8, 2026 13:10

The reasonableness of this change needs to be reconsidered.

@casparant casparant added the scope:scripts ./scripts/ label Apr 8, 2026
Copy link
Copy Markdown
Collaborator

@samchu-zsl samchu-zsl left a comment

Choose a reason for hiding this comment

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

This script is only compatible with RPM-based distributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:scripts ./scripts/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(<sight>): agentsight build rpm failed

3 participants