From a4c0c76fa553b7382a40a90329c20a6b3812e0cc Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Wed, 15 Jan 2025 16:31:49 +0530 Subject: [PATCH] fix: set cwctl pg version to 16 (#10689) # Pull Request Template ## Description Multiple versions of postgres were getting installed, conflicting with the `pgvector` extension being installed. This PR sets the version to `16` for all postgres dependencies ensuring a single version is installed. ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) ## How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- deployment/setup_20.04.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/setup_20.04.sh b/deployment/setup_20.04.sh index c7cfe84d5..3802f9f95 100644 --- a/deployment/setup_20.04.sh +++ b/deployment/setup_20.04.sh @@ -179,7 +179,7 @@ function install_dependencies() { curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg NODE_MAJOR=20 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list - echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list + echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg 16" > /etc/apt/sources.list.d/pgdg.list wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - @@ -189,7 +189,7 @@ function install_dependencies() { git software-properties-common ca-certificates imagemagick libpq-dev \ libxml2-dev libxslt1-dev file g++ gcc autoconf build-essential \ libssl-dev libyaml-dev libreadline-dev gnupg2 \ - postgresql-client redis-tools \ + postgresql-client-16 redis-tools \ nodejs patch ruby-dev zlib1g-dev liblzma-dev \ libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev sudo \ libvips python3-pip