projections: simplify expression (#46167)

This commit is contained in:
Harmen Stoppels
2024-09-02 14:38:47 +02:00
committed by GitHub
parent 20565ba8ab
commit b5dec35113

View File

@@ -22,13 +22,8 @@
import spack.util.spack_json as sjson
from spack.error import SpackError
# Note: Posixpath is used here as opposed to
# os.path.join due to spack.spec.Spec.format
# requiring forward slash path seperators at this stage
default_projections = {
"all": posixpath.join(
"{architecture}", "{compiler.name}-{compiler.version}", "{name}-{version}-{hash}"
)
"all": "{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}"
}