From eef202ea855c64447721ce5c11242e14f5e188bf Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Sat, 28 May 2022 20:04:18 +0200 Subject: fix dev paths for deps --- lib/spack/spack/solver/asp.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py index 1b3eb8b1a8..d3348dc6ba 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -1882,9 +1882,14 @@ class SpackSolverSetup(object): # Inject dev_path from environment env = ev.active_environment() if env: - for spec in sorted(specs): - for dep in spec.traverse(): - _develop_specs_from_env(dep, env) + for name, info in env.dev_specs.items(): + dev_spec = spack.spec.Spec(info['spec']) + dev_spec.constrain( + 'dev_path=%s' % spack.util.path.canonicalize_path(info['path']) + ) + + self.condition(spack.spec.Spec(name), dev_spec, + msg="%s is a develop spec" % name) self.gen.h1('Spec Constraints') self.literal_specs(specs) -- cgit v1.2.3-70-g09d2