Skip to content

fix build cache configuration#2

Open
bcumming wants to merge 1 commit intohpc:lanl/mirrorsfrom
bcumming:mirrors-cache
Open

fix build cache configuration#2
bcumming wants to merge 1 commit intohpc:lanl/mirrorsfrom
bcumming:mirrors-cache

Conversation

@bcumming
Copy link
Collaborator

This PR does two things:

  1. fix some bugs that stopped build cache working
  2. refactor the mirror setup to perform validation of build cache information in the recipe stage

point 2 is important: we validate and generate data when creating the recipe, and the builder takes the validated information from the recipe and generates the build directory. You might want to look at doing the same for the other stages (bootstrap, spack_mirrors_yaml)

  • generate the yaml output in the constructor for mirrors, not on demand during generation.
    This would bring the patch into line with the current recipe/builder separation of responsibilities (whether that is a good split is a different topic)

note that this breaks the unit tests. I ran out of time to figure out how they work, so I didn't fix them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant