Skip to content

Update uncrustify version selection to support >= 0.78.1 (backport #581)#582

Merged
clalancette merged 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-581
May 8, 2026
Merged

Update uncrustify version selection to support >= 0.78.1 (backport #581)#582
clalancette merged 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-581

Conversation

@mergify

@mergify mergify Bot commented May 7, 2026

Copy link
Copy Markdown

This PR updates the Uncrustify version selection logic in ament_uncrustify to support versions >= 0.78.1.

The Problem

Currently, ament_uncrustify hardcodes a check for exactly 0.78.1. If the version differs (even if it is newer), the script falls back to the obsolete 0.72 configuration (designed for RHEL 8 / Ubuntu 20.04).

  • RHEL 10 (via EPEL) provides Uncrustify 0.80.1.
  • Because 0.80.1 != 0.78.1, RHEL 10 currently falls back to the 0.72 configuration, resulting in thousands of formatting violations in CI.
  • Ubuntu 26.04 (Resolute) currently provides 0.78.1, so it passes

The Fix

Updated the logic to use the 0.78 configuration for any version >= 0.78.1. This ensures that the modern style definition is used for the 0.8x family of engines available on RHEL 10 and newer Ubuntu releases.

Assisted-by: Gemini CLI:2.0-Flash


This is an automatic backport of pull request #581 done by [Mergify](https://mergify.com).

Signed-off-by: Michael Carroll <mjcarroll.oss@gmail.com>
(cherry picked from commit b739a19)
@clalancette

Copy link
Copy Markdown
Contributor

CI for this is in ros2/launch_ros#541 (comment)

@clalancette clalancette merged commit 8c03a21 into lyrical May 8, 2026
3 checks passed
@clalancette clalancette deleted the mergify/bp/lyrical/pr-581 branch May 8, 2026 00:04
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