From f9904533e1e479f26541e0a360f1fdae5e7a861e Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Wed, 10 Jul 2024 20:58:58 +0000 Subject: [PATCH] fix(redis): install redis with pkgx instead of flox --- redis/src/helpers.rs | 16 +++++++--------- redis/src/lib.rs | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/redis/src/helpers.rs b/redis/src/helpers.rs index 09f7eda..7486bbf 100644 --- a/redis/src/helpers.rs +++ b/redis/src/helpers.rs @@ -2,17 +2,15 @@ use anyhow::Error; use fluentci_pdk::dag; pub fn setup() -> Result { - dag() - .pipeline("setup")? - .with_exec(vec!["mkdir", "-p", ".fluentci"])? - .stdout()?; - let stdout = dag() - .flox()? - .with_workdir(".fluentci")? - .with_exec(vec![ - "flox", "install", "redis", "overmind", "tmux", "openssl", + .pkgx()? + .with_exec(vec!["mkdir", "-p", ".fluentci"])? + .with_packages(vec![ + "redis.io", + "github.com/darthsim/overmind", + "github.com/tmux/tmux", ])? + .with_workdir(".fluentci")? .with_exec(vec![ "grep -q redis Procfile || echo 'redis: redis-server' >> Procfile", ])? diff --git a/redis/src/lib.rs b/redis/src/lib.rs index d76eebc..3c7c1ee 100644 --- a/redis/src/lib.rs +++ b/redis/src/lib.rs @@ -7,7 +7,7 @@ pub mod helpers; pub fn start(_args: String) -> FnResult { helpers::setup()?; let stdout = dag() - .flox()? + .pkgx()? .with_workdir(".fluentci")? .with_exec(vec!["overmind", "--version"])? .with_exec(vec!["redis-server", "--version"])?