@@ -143,10 +143,9 @@ def __init__(self, args):
143143 self ._logger .debug ("no pre install hook provided" )
144144
145145 # determine the version of spack being used:
146- # --develop flag implies the next release of spack
147- # --spack-version option explicitly sets the version
148- # otherwise the name of the commit provided in the config.yaml file is inspected
149- self .spack_version = self .find_spack_version (args .develop , args .spack_version )
146+ # currently this just returns 1.0... develop is ignored
147+ # --develop flag will imply the next release of spack after 1.0 is supported properly
148+ self .spack_version = self .find_spack_version (args .develop )
150149
151150 # Returns:
152151 # Path: if the recipe contains a spack package repository
@@ -229,46 +228,10 @@ def config(self, config_path):
229228 schema .config_validator .validate (raw )
230229 self ._config = raw
231230
232- def find_spack_version (self , develop , spack_version ):
233- # determine the "major" version, if it can be inferred.
234- # one of "0.21", "0.22", "0.23", "0.24" or "unknown".
235- # "0.24" implies the latest features in develop that will
236- # are being developed for the next version of spack
237-
238- # the user has explicitly requested develop:
239- if develop :
240- return "0.24"
241-
242- if spack_version is not None :
243- return spack_version
244-
245- # infer from the branch name
246- # Note: this could be improved by first downloading
247- # the requested spack version/tag/commit, then checking
248- # the version returned by `spack --version`
249- #
250- # this would require defering this decision until after
251- # the repo is cloned in build.py... a lot of work.
252- commit = self .config ["spack" ]["commit" ]
253- if commit is None or commit == "develop" :
254- return "0.24"
255- # currently supported
256- if commit .find ("0.24" ) >= 0 :
257- return "0.24"
258- # currently supported
259- if commit .find ("0.23" ) >= 0 :
260- return "0.23"
261- # currently supported
262- if commit .find ("0.22" ) >= 0 :
263- return "0.22"
264- # currently supported
265- if commit .find ("0.21" ) >= 0 :
266- return "0.21"
267- # currently supported
268- if commit .find ("0.20" ) >= 0 :
269- raise ValueError (f"spack minimum version is v0.21 - recipe uses { commit } " )
270-
271- return "unknown"
231+ # In Stackinator 6 we replaced logic required to determine the
232+ # pre 1.0 Spack version.
233+ def find_spack_version (self , develop ):
234+ return "1.0"
272235
273236 @property
274237 def environment_view_meta (self ):
0 commit comments