spack graph: fix coloring with environments (#41240)

If we use all specs, we won't color correctly build-only dependencies
This commit is contained in:
Massimiliano Culpo 2023-11-24 10:08:21 +01:00
parent e8bbd7763c
commit e70e401be1

View file

@ -61,7 +61,7 @@ def graph(parser, args):
args.dot = True
env = ev.active_environment()
if env:
specs = env.all_specs()
specs = env.concrete_roots()
else:
specs = spack.store.STORE.db.query()