spack-manager icon indicating copy to clipboard operation
spack-manager copied to clipboard

Spack "upstream not found" warning

Open wyphan opened this issue 2 years ago • 0 comments

Creating an Exawind snapshot on a freshly-cloned spack-manager makes Spack emit this warning:

==> Warning: upstream not found: /path/to/spack-manager/spack/opt/spack/.spack-db/index.json

Normally this warning is harmless, but for container builds, it makes Spack return an error code of 2, which terminates the container build process early. Regardless, the warning is actually valid, since with a fresh clone, no Spack packages have been installed yet, and such the upstream Spack database doesn't exist.

There are two ways to fix this:

  • Skip setting up the upstream entirely
  • Install a package in upstream before running the create snapshot script

wyphan avatar Oct 05 '23 19:10 wyphan