forked from repo-mirrors/dbt-core
add script to override dev dependencies in tests (#10023)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
git+https://github.com/dbt-labs/dbt-adapters.git
|
||||
git+https://github.com/dbt-labs/dbt-adapters.git@main
|
||||
git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-tests-adapter
|
||||
git+https://github.com/dbt-labs/dbt-common.git@main
|
||||
git+https://github.com/dbt-labs/dbt-postgres.git@main
|
||||
|
||||
14
scripts/update_dev_packages.sh
Executable file
14
scripts/update_dev_packages.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash -e
|
||||
set -e
|
||||
|
||||
repo=$1
|
||||
ref=$2
|
||||
target_req_file="dev-requirements.txt"
|
||||
|
||||
req_sed_pattern="s|${repo}.git@main|${repo}.git@${ref}|g"
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
# mac ships with a different version of sed that requires a delimiter arg
|
||||
sed -i "" "$req_sed_pattern" $target_req_file
|
||||
else
|
||||
sed -i "$req_sed_pattern" $target_req_file
|
||||
fi
|
||||
Reference in New Issue
Block a user