diff options
author | Greg Becker <becker33@llnl.gov> | 2022-11-06 11:30:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 11:30:37 -0800 |
commit | d4b45605c875c5c6a3578cd8dab2a5c54e4779c5 (patch) | |
tree | c638fdd9663eea23634ff77b7cc81e0349281bfd /bin/sbang | |
parent | 8b4b26fcbd754e17b0120b17d58b42fc8d30627d (diff) | |
download | spack-d4b45605c875c5c6a3578cd8dab2a5c54e4779c5.tar.gz spack-d4b45605c875c5c6a3578cd8dab2a5c54e4779c5.tar.bz2 spack-d4b45605c875c5c6a3578cd8dab2a5c54e4779c5.tar.xz spack-d4b45605c875c5c6a3578cd8dab2a5c54e4779c5.zip |
allow multiple compatible deps from CLI (#21262)
Currently, Spack can fail for a valid spec if the spec is constructed from overlapping, but not conflicting, concrete specs via the hash.
For example, if abcdef and ghijkl are the hashes of specs that both depend on zlib/mnopqr, then foo ^/abcdef ^/ghijkl will fail to construct a spec, with the error message "Cannot depend on zlib... twice".
This PR changes this behavior to check whether the specs are compatible before failing.
With this PR, foo ^/abcdef ^/ghijkl will concretize.
As a side-effect, so will foo ^zlib ^zlib and other specs that are redundant on their dependencies.
Diffstat (limited to 'bin/sbang')
0 files changed, 0 insertions, 0 deletions