Skip to content

Comments

fix: copy cmake/ directory when cloning ros2_medkit#32

Merged
bburda merged 2 commits intomainfrom
fix/missing-cmake
Feb 19, 2026
Merged

fix: copy cmake/ directory when cloning ros2_medkit#32
bburda merged 2 commits intomainfrom
fix/missing-cmake

Conversation

@bburda
Copy link
Contributor

@bburda bburda commented Feb 19, 2026

ROS2MedkitCompat.cmake was not being preserved during the selective extraction of ros2_medkit packages, causing build failures in gateway, serialization, and fault_manager packages that depend on it.

closes #33

Copilot AI review requested due to automatic review settings February 19, 2026 16:08
Copy link

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

This PR fixes a build failure issue by preserving the cmake/ directory when selectively extracting ros2_medkit packages. The cmake directory contains ROS2MedkitCompat.cmake, which is required by gateway, serialization, and fault_manager packages during the colcon build process.

Changes:

  • Added cmake directory extraction step to all three demo Dockerfiles
  • Ensures ROS2MedkitCompat.cmake is available at workspace level before package builds

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
demos/turtlebot3_integration/Dockerfile Adds cmake directory extraction after git clone, before package extraction
demos/sensor_diagnostics/Dockerfile Adds cmake directory extraction after git clone, before package extraction
demos/moveit_pick_place/Dockerfile Adds cmake directory extraction after git clone, before package extraction

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

Preserve ROS2MedkitCompat.cmake from the ros2_medkit clone before
deleting it. Without this, colcon build fails because gateway,
serialization, and fault_manager packages cannot resolve their
../../cmake/ROS2MedkitCompat.cmake include path.

Mirrors the fix already applied to turtlebot3 and sensor_diagnostics.
set -e does not catch failures inside && lists, so a failed docker
build would silently continue and print the success banner. Split
build and up into separate steps with an explicit exit on build
failure, tearing down any partial containers.
@bburda bburda self-assigned this Feb 19, 2026
@bburda bburda requested a review from mfaferek93 February 19, 2026 16:17
@bburda bburda merged commit 3f53cf1 into main Feb 19, 2026
2 checks passed
@bburda bburda deleted the fix/missing-cmake branch February 19, 2026 16:55
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.

Fix building of MoveIt demo

2 participants