diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-04-25 17:41:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 08:41:48 -0700 |
commit | 3dd4999fd7bb32f94dcf686b7c205b5c942cb7a6 (patch) | |
tree | 5c55d3de9a296fdebb68a62642746cdb9f082fb0 /.github | |
parent | c1ed51e767267422c503515789327c794bca2db6 (diff) | |
download | spack-3dd4999fd7bb32f94dcf686b7c205b5c942cb7a6.tar.gz spack-3dd4999fd7bb32f94dcf686b7c205b5c942cb7a6.tar.bz2 spack-3dd4999fd7bb32f94dcf686b7c205b5c942cb7a6.tar.xz spack-3dd4999fd7bb32f94dcf686b7c205b5c942cb7a6.zip |
spec.py: make parser select from environment (#30276)
The parser is already committing a crime of querying the database for
specs when it encounters a `/hash`. It's helpful, but unfortunately not
helpful when trying to install a specific spec in an environment by
hash. Therefore, consider the environment first, then the database.
This allows the following:
```console
$ spack -e . concretize
==> Starting concretization
==> Environment concretized in 0.27 seconds.
==> Concretized diffutils
- 7vangk4 diffutils@3.8%gcc@10.3.0 arch=linux-ubuntu20.04-zen2
- hyb7ehx ^libiconv@1.16%gcc@10.3.0 libs=shared,static arch=linux-ubuntu20.04-zen2
$ spack -e . install /hyb7ehx
==> Installing libiconv-1.16-hyb7ehxxyqqp2hiw56bzm5ampkw6cxws
...
==> libiconv: Successfully installed libiconv-1.16-hyb7ehxxyqqp2hiw56bzm5ampkw6cxws
Fetch: 0.01s. Build: 17.54s. Total: 17.55s.
[+] /tmp/tmp.VpvYApofVm/store/linux-ubuntu20.04-zen2/gcc-10.3.0/libiconv-1.16-hyb7ehxxyqqp2hiw56bzm5ampkw6cxws
```
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions