From 7f6903a81eea86189c86f00c5e2c35ae7abd53b8 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Fri, 10 Jul 2026 21:17:43 -0700 Subject: [PATCH] CI: remove conflicting ros2-testing-apt-source before setup-ros (rolling) --- .github/workflows/cmake-ros.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cmake-ros.yml b/.github/workflows/cmake-ros.yml index 393608f1..91529682 100644 --- a/.github/workflows/cmake-ros.yml +++ b/.github/workflows/cmake-ros.yml @@ -43,6 +43,11 @@ jobs: image: osrf/ros:${{ matrix.ros_distribution }}-desktop-full steps: - uses: actions/checkout@v4 + # Newer osrf/ros images (e.g. rolling) ship "ros2-testing-apt-source", which conflicts + # with the "ros2-apt-source" package that setup-ros installs. Remove it first so setup-ros + # can install its apt source cleanly (no-op on images that don't have it). + - name: Remove conflicting ros2 apt source package + run: apt-get remove -y ros2-testing-apt-source || true - uses: ros-tooling/setup-ros@v0.7 with: required-ros-distributions: ${{ matrix.ros_distribution }}