You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2022/10/27 10:26:00 UTC

[incubator-devlake] branch main updated: fix: pass the value of projectPath to dbt project-dir argument (#3575)

This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new df1664a9 fix: pass the value of projectPath to dbt project-dir argument (#3575)
df1664a9 is described below

commit df1664a948a3c3c450b6d7cd7bbefc9681801c6e
Author: Chaojie Yan <72...@qq.com>
AuthorDate: Thu Oct 27 18:25:55 2022 +0800

    fix: pass the value of projectPath to dbt project-dir argument (#3575)
    
    Co-authored-by: Chaojie Yan <ch...@merico.dev>
---
 plugins/dbt/tasks/convertor.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/dbt/tasks/convertor.go b/plugins/dbt/tasks/convertor.go
index 265fd5c1..8ddda37d 100644
--- a/plugins/dbt/tasks/convertor.go
+++ b/plugins/dbt/tasks/convertor.go
@@ -110,7 +110,7 @@ func DbtConverter(taskCtx core.SubTaskContext) errors.Error {
 			return err
 		}
 	}
-	dbtExecParams := []string{"dbt", "run", "--profiles-dir", projectPath}
+	dbtExecParams := []string{"dbt", "run", "--project-dir", projectPath}
 	if projectVars != nil {
 		jsonProjectVars, err := json.Marshal(projectVars)
 		if err != nil {