-
Notifications
You must be signed in to change notification settings - Fork 12
add bootstrap defense #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Chris White <[email protected]>
|
This also works w/o using # set bootstrap location in dest dir
bstrp_cmd = "{0} bootstrap root --scope=site {1}".format(self.spack_exe(use_spack_env=False),
pjoin(self.dest_dir,"spack_bootstrap"))
res = sexe(bstrp_cmd, echo=True) |
|
I think @cyrush 's suggestion is probably better -- you could still technically create a situation that required cleaning the bootstrap, but by far the most likely reason is two different versions of Spack trying to use the same bootstrap store. |
|
We might hit a parallelism problem cleaning out the bootstrapping... I think the changing the bootstrap location is probably better. |
|
Sounds good, I'll get this in soon. I am already using it on a branch so I am confident it helps. |
|
spoke too soon ... hitting a new error |
|
|
bootstrap dir isn't enough, spack user cache dir needs to be controlled via SPACK_USER_CACHE_PATH, or hacked out. In my test branch, I am updating the spack source to hard code the user cache path to be in a |
|
the other issue I had: fails to fully bootstrap It says that But if I skip setting up clingo all together, things work. Based on this, it seems that the install process will get clingo setup. All of this said, there could be more surprises in the sprawl. |
spack configs created with post 1.0 spack will undermine bootstrap of older spack (0.23.0) - here is an example of the error message you get:
Note the
:=syntax is newer then spack 0.23.0This adds
-bto the our clean command, to re-bootstrap and avoid config issues from undermining builds.