Read about our upcoming Code of Conduct on this issue

Commit 89b62efe authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Use asdf if available and not opt out, else direct

parent 8e55144d112f
......@@ -146,10 +146,13 @@ ruby_configure_opts() {
configure_ruby_bundler() {
local current_postgres_version
current_postgres_version=$(asdf current postgres | awk '{ print $2 }')
if asdf_enabled; then
current_pg_config_location=$(asdf which pg_config)
current_pg_config_location=$(command -v pg_config)
bundle config "--with-pg-config=${CURRENT_ASDF_DATA_DIR}/installs/postgres/${current_postgres_version}/bin/pg_config"
bundle config "--with-pg-config=${current_pg_config_location}"
bundle config build.thin --with-cflags="-Wno-error=implicit-function-declaration"
if [[ "${OSTYPE}" == "darwin"* ]]; then
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment