summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-11-24 10:08:21 +0100
committerGitHub <noreply@github.com>2023-11-24 10:08:21 +0100
commit92d076e6834aefdd29e3576ea36a1664e4e793f2 (patch)
tree501c42cd73c9bf5e79f243aeefc3e7ae41363dbf /lib
parentf70ef51f1a26e32f0292043c938fe132a9afc983 (diff)
downloadspack-92d076e6834aefdd29e3576ea36a1664e4e793f2.tar.gz
spack-92d076e6834aefdd29e3576ea36a1664e4e793f2.tar.bz2
spack-92d076e6834aefdd29e3576ea36a1664e4e793f2.tar.xz
spack-92d076e6834aefdd29e3576ea36a1664e4e793f2.zip
spack graph: fix coloring with environments (#41240)
If we use all specs, we won't color correctly build-only dependencies
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/graph.py b/lib/spack/spack/cmd/graph.py
index eeced40720..4122d8d588 100644
--- a/lib/spack/spack/cmd/graph.py
+++ b/lib/spack/spack/cmd/graph.py
@@ -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()