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

🐛 Fix the PostgreSQL Homebrew definition #612

Merged
merged 1 commit into from
Nov 1, 2022
Merged

Conversation

purinkle
Copy link
Contributor

Before, we used the simple postgres alias to install PostgreSQL with Homebrew. Homebrew has removed this alias and needs us to define the required version. We fixed the definition to use the full formula name and define a version.

Before, we used the simple `postgres` alias to install PostgreSQL with
Homebrew. Homebrew has removed this alias and needs us to define the
required version. We fixed the definition to use the full formula name
and define a version.
mac
@@ -138,7 +138,7 @@ brew "yarn"
cask "gpg-suite-no-mail"

# Databases
brew "postgres", restart_service: :changed
brew "postgresql@14", restart_service: :changed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually need to be postgresql@14 in order to work at all, or would just postgresql work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, we have to set an explicit version. If we only use postgresql, then Homebrew gives us the following warning.

Warning: Use postgresql@14 instead of deprecated postgresql

I'd love it if there was a way we could set it to latest or similar.

@nbibler
Copy link

nbibler commented Sep 3, 2022

I think brew install postgres now fails with recent versions of Homebrew and the install exits with errors:

Warning: No available formula with the name "postgres". Did you mean postgrest or postgis?
==> Searching for similarly named formulae...
These similarly named formulae were found:
check_postgres
postgresql@10
postgresql@11
postgresql@12
postgresql@13
postgresql@14
postgresql@9.4
postgresql@9.5
postgresql@9.6
postgrest
qt-postgresql
postgis
To install one of them, run (for example):
  brew install check_postgres
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Installing postgres has failed!
Homebrew Bundle failed! 1 Brewfile dependency failed to install.

@cpytel cpytel merged commit 35e07a5 into main Nov 1, 2022
@cpytel cpytel deleted the fix-postgres-formula branch November 1, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants