Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix macOS pkg-config error previously unresolved by 020648a
Due to a bug in the highway brew package, pkg-config --list-all segfaults on mac runners (actions/runner-images#6364). In addition, cabal probes pkg-config --list-all despite not needing it (haskell/cabal#8496). Combined, this created an issue where cabal would fail to create a build plan on macOS GitHub Action runners citing a lack of libsodium/pkg-config. The temporary solution is to reinstall the highway brew package since it has now been patched. The long-term solution is to wait for cabal to change its probing behaviour (tracked above), or wait for GitHub Actions runner environments to update so it comes with the patch preinstalled. (side note: I was pursuing this CI bug for over 4 days, unable to find anything relevant on search engines.... until 30 minutes ago, when I hit the jackpot with the right search terms and arrived at the issues above. In fact, the issue was only solved 5 hours ago, and the last comment in the thread was from 22 minutes before I arrived. I felt quite some strong adrenaline flowing through me when I realised how lucky I was today...)
- Loading branch information