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

Allow use of paru in addition to yay as aur helper #7652

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

eldyl
Copy link
Contributor

@eldyl eldyl commented Oct 13, 2024

Hello Twenty Team,

If this is not an appropriate PR, please feel to close it. I am hoping to make larger contributions down the road.

I was getting twenty setup locally, and I had a problem with the install script. I noticed that yay was named as an AUR helper, but paru was not. I use paru, and this caused the setup script to fail.

I made a small change in the if statement that checks if pg-graphql can be installed with yay. I included a check for paru on the same line.

Thanks everyone who has made this project what it is.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request modifies the PostgreSQL installation script to include support for the 'paru' AUR helper alongside 'yay' on Arch Linux systems.

  • Added 'paru' as an alternative AUR helper in /packages/twenty-postgres/linux/provision-postgres-linux.sh
  • Improves compatibility for Arch Linux users who prefer 'paru' over 'yay'
  • Maintains backward compatibility with existing 'yay' installation method
  • Enhances the script's flexibility in handling different Arch Linux setups
  • Consider adding error handling for cases where neither 'yay' nor 'paru' is available

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -98,7 +98,7 @@ elif [ "$PACKAGE_MANAGER" = "pacman" ]; then
sudo pacman -S postgresql postgresql-libs curl --noconfirm || handle_error "Failed to install PostgreSQL or curl."

echo_header $GREEN "Step [2/4]: Installing GraphQL for PostgreSQL on Arch..."
if ! yay -S --noconfirm pg_graphql; then
if ! yay -S --noconfirm pg_graphql && ! paru -S --noconfirm pg_graphql; then
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: The '!' operator might cause the script to exit if the first command fails, potentially preventing 'paru' from being tried

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Why not! I don't have Linux but I don't see how this will harm non paru users

@charlesBochet charlesBochet merged commit da7a394 into twentyhq:main Oct 13, 2024
3 checks passed
@charlesBochet
Copy link
Member

/award 150

Copy link

oss-gg bot commented Oct 13, 2024

Awarding eldyl: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/eldyl

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.

2 participants