0
$\begingroup$

Rosanswers logo

I am trying to build a ros2 workspace with colcon. How I can blacklist packages?

I am looking for the catkin-equivalent to:

catkin config --blacklist baz

--- updated information --

I tried unsuccessfully the following:

$ colcon build --packages-skip mypackage

usage: colcon [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL] {build,test,test-result} ...
colcon: error: unrecognized arguments: --packages-skip mypackage

also tried unsuccessfully:

$ colcon build --packages-ignore mypackage

usage: colcon [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL] {build,test,test-result} ...
colcon: error: unrecognized arguments: --packages-ignore mypackage

Originally posted by Pablo Iñigo Blasco on ROS Answers with karma: 2982 on 2020-10-19

Post score: 0


Original comments

Comment by Dirk Thomas on 2020-10-20:
Do you have the Debian package python3-colcon-package-selection or the Python package colcon-package-selection installed?

Comment by Pablo Iñigo Blasco on 2020-10-20:
Nopes. That was the issue. Thank you.

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

There's --packages-skip baz which might serve your purposes. See the docs for lots more including and excluding options.


Originally posted by KenYN with karma: 541 on 2020-10-20

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by Dirk Thomas on 2020-10-20:
--packages-ignore could also be an option: see https://colcon.readthedocs.io/en/released/reference/discovery-arguments.html

$\endgroup$
0
$\begingroup$

Rosanswers logo

COLCON_IGNORE may be useful. Once you set it, you can blacklist a package until you unblacklist it.

ref: https://answers.ros.org/question/299729/ament-versus-colcon-ignore-files/


Originally posted by miura with karma: 1908 on 2020-10-20

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.