concretizer: make --force config and a common argument#48838
concretizer: make --force config and a common argument#48838
--force config and a common argument#48838Conversation
e2a1b68 to
0ffeaa5
Compare
|
Ok this conflicts with I am tempted to deprecate spack install ./spec.json
spack install /full/path/to/spec.jsoni.e., you do not actually need the option anymore.
Thoughts? Is this too drastic? The alternative would be only adding |
--force is now config and a common argument--force config and a common argument
I think mapping |
0ffeaa5 to
a3d5c7e
Compare
`--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
```
- [x] make `concretizer:force` a configuration option
- [x] add `--force` to common concretizer arguments
- [x] BREAKING: remove `--file` from `spack install` to make room for `--force`
Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Todd Gamblin <[email protected]>
b12aff4 to
d4c8473
Compare
Signed-off-by: Todd Gamblin <[email protected]>
alalazo
left a comment
There was a problem hiding this comment.
I agree with the goal of the PR, just one comment on adding an implicit dependency on config to the env.concretize method
--forcewas previously available only onspack concretizebut not onspack 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 -forspack solve -f. You can also set concretization to always forcein config with:
Making room for this required two breaking changes:
spack install --fileno longer works. The-f/--fileoption conflictedwith
--force. If you wrote:you should simply remove the flag:
Files as spec arguments have been supported since at least Spack
v0.10.0.We did not preserve
--filebecause it took a separate code path that was alreadybuggy. Using one code path for spec files will allow us to handle them more reliably.
spack mirror create --fileno longer has a short-foptionIf you wrote:
You should now use the long argument:
We removed the
-foption to make room for-f / --force.concretizer:forcea configuration option--forceto common concretizer arguments-fshort option fromspack mirror create --file-f/--fileoption fromspack install