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
This, according to Spack version comparison documentation, would include the defined version master. However, at a first glance, it is not too obvious and is prone to errors.
Proposed solution
I suggest setting the dependencies based on specific defined versions, for clarity and simplicity.
In this specific case, the dependencies could be set as:
- with when("@:access-esm0,access-esm2:"):+ with when("@master"):
depends_on("[email protected]:")
depends_on("[email protected]:")
# Depend on virtual package "mpi".
depends_on("mpi")
depends_on("datetime-fortran")
depends_on("oasis3-mct+deterministic", when="+deterministic")
depends_on("oasis3-mct~deterministic", when="~deterministic")
depends_on("libaccessom2+deterministic", when="+deterministic")
depends_on("libaccessom2~deterministic", when="~deterministic")
with when("@access-esm1.5:access-esm1.6"):
depends_on("[email protected]:4.7.4")
depends_on("[email protected]:4.5.2")
# Depend on "openmpi".
depends_on("[email protected]:4.1.0")
depends_on("[email protected]")
access-esm1.5 and access-esm1.6 versions could be further separated if different dependencies are required.
This would likely not add any overhead when new versions need to be added, because the package.py file would still need to be changed and the dependencies of the new version checked. In that case, a further condition can be added for the new version (or the new version can be included in an already-present condition).
This would improve the package clarity.
The text was updated successfully, but these errors were encountered:
Description of the problem
Currently, the conditions for the dependencies of the mom5 package are defined in a way that does not explicitly mention a defined version:
spack-packages/packages/mom5/package.py
Line 33 in a490029
This, according to Spack version comparison documentation, would include the defined version
master
. However, at a first glance, it is not too obvious and is prone to errors.Proposed solution
I suggest setting the dependencies based on specific defined versions, for clarity and simplicity.
In this specific case, the dependencies could be set as:
access-esm1.5
andaccess-esm1.6
versions could be further separated if different dependencies are required.This would likely not add any overhead when new versions need to be added, because the
package.py
file would still need to be changed and the dependencies of the new version checked. In that case, a further condition can be added for the new version (or the new version can be included in an already-present condition).This would improve the package clarity.
The text was updated successfully, but these errors were encountered: