<#6664 Allow Meltano to create shims for extension...
# meltano-repo-activity
g
#6664 Allow Meltano to create shims for extension executables like
dbt
Issue created by aaronsteers Discussed in office hours on 2022-08-24. Slack discussion here: https://meltano.slack.com/archives/CKHP6G5V4/p1660539837165539?thread_ts=1660539529.258669&cid=CKHP6G5V4 Excerpts from the slack conversation:
Few questions we'd need to iron out:
• How is environment name selected? Or do we create shims for each environment?
• Should shims get created automatically or only by request?
• Pros/cons of putting on PATH (
~/bin/dbt
) vs in a dedicated bin directory for the project (
$MELTANO_PROJECT_ROOT/.meltano/bin/dbt
vs in a dedicated bin directory for the environment (
$MELTANO_PROJECT_ROOT/.meltano/<dev|prod>/bin/dbt
).
There are some attractive usability benefits (in addition to the interop advantages) of putting these on the path (or making it easy for the user to do so) and seeding in the environment name as well as all needed environment variables for the plugin to execute.
A couple possible meltano CLI invocation patterns from @z3z1ma:
meltano shim dbt
||
meltano shim dbt-bigquery --as dbt
Then:
cat ~/bin/dbt
or
cat $MELTANO_PROJECT_ROOT/bin/dbt
#!/bin/bash
meltano invoke dbt-bigquery "$@"
cc @pnadolny13 meltano/meltano