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
$ echo'spookle:'> x.yaml
$ spack env create x x.yaml==> Error: /scratch/greenc/art-ci-spack-2023-05-06/spack_env/var/spack/environments/x/spack.yaml:1: 'spookle' does not match any of the regexes: '^env|spack$'
$ spack env list==> 1 environment x
$ spack env rm -y x==> Error: /scratch/greenc/art-ci-spack-2023-05-06/spack_env/var/spack/environments/x/spack.yaml:1: 'spookle' does not match any of the regexes: '^env|spack$'
$ spack env list==> 1 environments x
Error message
I would expect spack env rm to not attempt to parse the spack.yaml file before removing the environment unconditionally.
However, I'm not sure I would have expected spack env create to create and register the environment if the spack.yaml could not be parsed. Perhaps a user-provided spack.yaml should be parsed before the environment directory is created and the file copied it. Or, if we're creating an environment from an existing directory, that directory should not be registered as an environment that would then have to be removed.
Steps to reproduce
Error message
I would expect
spack env rm
to not attempt to parse thespack.yaml
file before removing the environment unconditionally.However, I'm not sure I would have expected
spack env create
to create and register the environment if thespack.yaml
could not be parsed. Perhaps a user-providedspack.yaml
should be parsed before the environment directory is created and the file copied it. Or, if we're creating an environment from an existing directory, that directory should not be registered as an environment that would then have to be removed.Information on your system
General information
spack debug report
and reported the version of Spack/Python/PlatformThe text was updated successfully, but these errors were encountered: