spack/lib/spack
Peter Scheibel 2968ae667f
New command, spack change, to change existing env specs (#31995)
If you have an environment like

```
$ cat spack.yaml
spack:
  specs: [openmpi@4.1.0+cuda]
```

this PR provides a new command `spack change` that you can use to adjust environment specs from the command line:

```
$ spack change openmpi~cuda
$ cat spack.yaml
spack:
  specs: [openmpi@4.1.0~cuda]
```

in other words, this allows you to tweak the details of environment specs from the command line.

Notes:

* This is only allowed for environments that do not define matrices
  * This is possible but not anticipated to be needed immediately
  * If this were done, it should probably only be done for "named"/not-anonymous specs (i.e. we can change `openmpi+cuda` but not spec like `+cuda` or `@4.0.1~cuda`)
2022-09-01 11:04:01 -07:00
..
docs ASP-based solver: allow to reuse installed externals (#31558) 2022-08-31 20:05:55 +00:00
env Revert "strip -Werror: all specific or none (#30284)" (#30878) 2022-05-26 14:17:01 -07:00
external Use threading.TIMEOUT_MAX when available (#32399) 2022-08-26 17:37:56 -06:00
llnl filesystem: in recursive mtime, check only files that exist (#32175) 2022-08-16 21:06:31 +00:00
spack New command, spack change, to change existing env specs (#31995) 2022-09-01 11:04:01 -07:00