Skip to content

Commit

Permalink
fix issue #77: configure_postgres() was failing due to using a relati…
Browse files Browse the repository at this point in the history
…ve path to ./configure -- the fix is to use an absolute path, but still make sure that command.current_dir() is set
  • Loading branch information
eeeebbbbrrrr committed Jan 19, 2021
1 parent f64579c commit ee72f74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cargo-pgx/src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ fn configure_postgres(pg_config: &PgConfig, pgdir: &PathBuf) -> Result<(), std::
pg_config.major_version()?,
pg_config.minor_version()?
);
let mut command = std::process::Command::new("./configure");
let mut configure_path = pgdir.clone();
configure_path.push("configure");
let mut command = std::process::Command::new(configure_path);

command
.arg(format!("--prefix={}", get_pg_installdir(pgdir).display()))
Expand Down

0 comments on commit ee72f74

Please sign in to comment.