Skip to content

Commit

Permalink
add script to override dev dependencies in tests (#10023)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop authored Apr 24, 2024
1 parent 29429ec commit 2325759
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 14 additions & 0 deletions scripts/update_dev_packages.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2325759

Please sign in to comment.