From 7c2bdf84b971d83767aface101504a95a6cc6738 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 3 Mar 2024 13:52:14 +0100 Subject: [PATCH] fix(users/Profpatsch/whatcd-resolver): pin to postgres 14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I haven’t thought about how to migrate this when the postgres version changes, so for now we just pin to 14 and worry about it when we reach EOL lol Change-Id: Ib72ec7835c660db636a95fb5af8c9ce40897b1ce Reviewed-on: https://cl.tvl.fyi/c/depot/+/11085 Tested-by: BuildkiteCI Autosubmit: Profpatsch Reviewed-by: Profpatsch --- users/Profpatsch/shell.nix | 3 ++- users/Profpatsch/whatcd-resolver/default.nix | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/users/Profpatsch/shell.nix b/users/Profpatsch/shell.nix index 1e36dbeda..f749c2e34 100644 --- a/users/Profpatsch/shell.nix +++ b/users/Profpatsch/shell.nix @@ -60,7 +60,7 @@ pkgs.mkShell { pkgs.rustup pkgs.pkg-config pkgs.fuse - pkgs.postgresql + pkgs.postgresql_14 pkgs.nodejs pkgs.ninja ]; @@ -94,4 +94,5 @@ pkgs.mkShell { depot.third_party.rust-crates.nom ]}" ]; + } diff --git a/users/Profpatsch/whatcd-resolver/default.nix b/users/Profpatsch/whatcd-resolver/default.nix index e2800f95c..17b6505c8 100644 --- a/users/Profpatsch/whatcd-resolver/default.nix +++ b/users/Profpatsch/whatcd-resolver/default.nix @@ -56,7 +56,8 @@ depot.nix.writeExecline "whatcd-resolver-wrapped" { } [ "PATH" "export" "PATH" - "${pkgs.postgresql}/bin:$${PATH}" + # TODO: figure out how to automatically migrate to a new postgres version with tmp_postgres (dump?) + "${pkgs.postgresql_14}/bin:$${PATH}" "export" "WHATCD_RESOLVER_TOOLS" (pkgs.linkFarm "whatcd-resolver-tools" [