JCSDA / spack-stack

Creative Commons Zero v1.0 Universal
21 stars 41 forks source link

create env: warn if upstream environment's config doesn't match #1137

Open AlexanderRichert-NOAA opened 2 weeks ago

AlexanderRichert-NOAA commented 2 weeks ago

Summary

This PR adds a warning to the spack stack create env --upstream command if the new environment newly populated site and common directories have configs that don't match those of the upstream. It uses diff -rq, so it should work on MacOS. This will mainly be useful on HPC systems where we've made local config updates, perhaps in specific envs, that didn't get looped back into develop.

Testing

Testing on personal machine.

Applications affected

n/a

Systems affected

all

Dependencies

none

Issue(s) addressed

Fixes #1092

Checklist

AlexanderRichert-NOAA commented 2 weeks ago

Yeah, I added some tests to confirm the new warnings are functioning. Meanwhile, all the workflows are failing... :upside_down_face:

climbfuji commented 2 weeks ago

must be a github glitch?

climbfuji commented 2 weeks ago

https://www.githubstatus.com/