dbt-labs / dbt-rpc

A server that can compile and run queries in the context of a dbt project. Additionally, it provides methods that can be used to list and terminate running processes.
https://docs.getdbt.com/reference/commands/rpc
Apache License 2.0
19 stars 7 forks source link

[CT-1371] rpc doesn't use `--target-path` flag #97

Closed jeremyyeo closed 1 year ago

jeremyyeo commented 2 years ago

Not sure if we'd want to fix this or not (probably no) but raising anyway.

If you use the --target-path flag like so:

curl --request POST \
  --url http://localhost:8580/jsonrpc \
  --header 'Content-Type: application/json' \
  --data '{
    "jsonrpc": "2.0",
    "method": "cli_args",
    "id": "test-cli-args",
    "params": {
        "cli": "compile --target-path new_target"
    }
}
'

The compiled files and artifacts still go into target/ instead of new_target/.

Some users in dbt Cloud who may want to use this flag will find that they cannot.

image

misteliy commented 2 years ago

This is indeed a feature that would solve to leverage defer and make it a first class citizen. In turn this would allow to fully be able to do local developmentā€¦ currently it is not possible :/

jtcohen6 commented 2 years ago

Thanks for opening @jeremyyeo! We're not going to fix this, since the dbt-rpc server is nearing end of life, and we're planning to deprecate it / archive the repository in favor of a new dbt-server.

misteliy commented 1 year ago

will this then be possible in the new dbt-server?

github-actions[bot] commented 1 year ago

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days.