No such keg: /opt/homebrew/Cellar/pkg-config@0.29.2" using setup-r@v2 for MacOS latest
Closed this issue · 2 comments
Similar to #864, the R-CMD-check workflow here is reported as being successful but also produces the error "macOS-latest (release) No such keg: /opt/homebrew/Cellar/pkg-config@0.29.2" as can be seen here.
Seems like it's trying to 'unlink' something that isn't there?:
Downloading macOS utils
/opt/homebrew/bin/brew unlink pkg-config@0.29.2
Error: No such keg: /opt/homebrew/Cellar/pkg-config@0.29.2
/opt/homebrew/bin/brew install qpdf pkgconfig checkbashisms ghostscript
Warning: pkgconf 2.3.0_1 is already installed and up-to-date.
Maybe we could instead run
if brew unlink --dry-run pkg-config@0.29.2 ; then
brew unlink pkg-config@0.29.2
fi
to avoid the error?
Cf. https://docs.brew.sh/Manpage#unlink---dry-run-installed_formula-
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue