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
committed by GitHub
parent f70ef51f1a
commit 92d076e683

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()