Skip to content

Commit

Permalink
Don't warn about overriding when building the a workspace that has al…
Browse files Browse the repository at this point in the history
…ready been sourced

Signed-off-by: Shane Loretz <[email protected]>
  • Loading branch information
sloretz committed Jan 25, 2022
1 parent 76b0a24 commit c0fe4f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions colcon_core/verb/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def main(self, *, context): # noqa: D102

underlay_packages = {}
for prefix_path in get_chained_prefix_path():
if prefix_path == install_base:
# The install space of the workspace being built is sourced
# Ignore it for the purposes of the override warning
continue
packages = find_installed_packages(Path(prefix_path))
if packages:
for pkg, path in packages.items():
Expand Down

0 comments on commit c0fe4f2

Please sign in to comment.