Fix --build-plan
with dev-dependencies
#6086
Merged
--build-plan
with dev-dependencies
#6086