Skip to content

'spack load' fails for packages that have been renamed #14347

@aweits

Description

@aweits

Using 'spack load' on a package that was built prior to the renaming of that package will fail to load, even though the package is listed in 'spack find'.

==> Installing testit
==> Searching for binary cache of testit
==> No binary for testit found: installing from source
==> Fetching file:///bin/true
######################################################################## 100.0%
==> Staging unexpanded archive /tmp/pytest-of-aweits/pytest-54/test_keep_exceptions0/tmp/spack-stage-testit-master-om6hvveukb7veteczuk4bfvppobpystk/true in /tmp/pytest-of-aweits/pytest-54/test_keep_exceptions0/tmp/spack-stage-testit-master-om6hvveukb7veteczuk4bfvppobpystk/spack-src
==> Created stage in /tmp/pytest-of-aweits/pytest-54/test_keep_exceptions0/tmp/spack-stage-testit-master-om6hvveukb7veteczuk4bfvppobpystk
==> No patches needed for testit
==> Building testit [Package]
==> Executing phase: 'install'
==> Successfully installed testit
  Fetch: 0.02s.  Build: 0.16s.  Total: 0.18s.
[+] /tmp/SPACKIT/spack/opt/spack/linux-centos7-ivybridge/gcc-4.8.5/testit-master-om6hvveukb7veteczuk4bfvppobpystk

[move and rename the package file]

coltrane (builtin/packages):spack find testit
==> 1 installed package
-- linux-centos7-ivybridge / [email protected] --------------------------
testit@master
coltrane (builtin/packages):spack load testit
==> Error: Package 'testit' not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions