Skip to content

[Question / Feature Request] Only build packages with modified source code #702

@bharathsivaram10

Description

@bharathsivaram10

Hello,

I primarily use colcon for building ROS2 packages.

One thing I'd like to see is an option like 'colcon build --modified_only', which would somehow gather the packages whose cpp source code has been modified since the last build and only rebuild those ones.

This is as opposed to using the --packages-select, which I'd have to specify the packages. It would be nice to have when modifying a few packages in a large workspace and being able to auto-build those few without explicitly listing.

Is this possible? From searching around, it doesn't seem like the option currently exists. Would people find this useful?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions