You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
concretizer: make --force config and a common argument (spack#48838)
`--force` was previously available only on `spack concretize` but not on `spack spec`,
`spack solve`, and other commands that do concretization.
This means you can now preview a force-concretize on an environment or spec with
`spack spec -f` or `spack solve -f`. You can also set concretization to *always* force
in config with:
```yaml
spack:
concretizer:
force: true
```
Making room for this required two breaking changes:
1. `spack install --file` no longer works. The `-f` / `--file` option conflicted
with `--force`. If you wrote:
```
spack install -f ./spec.json`
```
you should simply remove the flag:
```
spack install ./spec.json`
```
Files as spec arguments have been supported since at least Spack `v0.10.0`.
We did not preserve `--file` because it took a separate code path that was already
buggy. Using one code path for spec files will allow us to handle them more reliably.
2. `spack mirror create --file` no longer has a short `-f` option
If you wrote:
```
spack mirror create -f FILE
```
You should now use the long argument:
```
spack mirror create --file FILE
```
We removed the `-f` option to make room for `-f / --force`.
- [x] make `concretizer:force` a configuration option
- [x] add `--force` to common concretizer arguments
- [x] remove the `-f` short option from `spack mirror create --file`
- [x] remove the `-f` / `--file` option from `spack install`
---------
Signed-off-by: Todd Gamblin <[email protected]>
0 commit comments