Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such keg: /opt/homebrew/Cellar/[email protected]" using setup-r@v2 for MacOS latest #968

Closed
petelaud opened this issue Feb 7, 2025 · 1 comment · Fixed by #973
Closed
Labels
bug an unexpected problem or unintended behavior

Comments

@petelaud
Copy link

petelaud commented Feb 7, 2025

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/[email protected]" 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 [email protected]
Error: No such keg: /opt/homebrew/Cellar/[email protected]
/opt/homebrew/bin/brew install qpdf pkgconfig checkbashisms ghostscript
Warning: pkgconf 2.3.0_1 is already installed and up-to-date.

@petelaud petelaud added the bug an unexpected problem or unintended behavior label Feb 7, 2025
@salim-b
Copy link

salim-b commented Feb 12, 2025

Maybe we could instead run

if brew unlink --dry-run [email protected] ; then
  brew unlink [email protected]
fi

to avoid the error?

Cf. https://docs.brew.sh/Manpage#unlink---dry-run-installed_formula-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants