ACCESS-NRI / build-cd

Deployment configurations and workflows
1 stars 0 forks source link

Recreate symlinks from `spack-config` to `$spack/etc/spack` after force checkout #44

Open CodeGat opened 5 months ago

CodeGat commented 5 months ago

See failed run: https://github.com/ACCESS-NRI/ACCESS-OM2/actions/runs/8447128060/job/23136977611#step:6:125 We hadn't deployed in a while, so https://github.com/ACCESS-NRI/spack-config/commit/3317dd22518b4e47967268ad7cd918d9e6715e98 went under the radar. When we deployed, there were a bunch of broken symlinks, so we couldn't find the spack-packages install, and then couldn't find the access-om2 package.

We should make deployment update the symlinks after we have done a git checkout --force of spack-config. Essentially:

rm <all the broken symlinks>
ln -s -r -v spack-config/v0.20/gadi/* spack/etc/spack/
CodeGat commented 4 months ago

Although this might not be an issue if https://github.com/ACCESS-NRI/spack-config/issues/30 is merged