Skip to content

[Bug][DBT] Git clone fails on all but the first run because folder already exists #8377

@himanshu-garg-zepto

Description

@himanshu-garg-zepto

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When using an advanced blueprint based on the DBT plugin with a remote git project url, the "Git" task of DBT fails on every subsequent run.

It's because it tries to git clone the project which succeeds the first time but fails on every subsequent run due to "folder already exists".

If I manually delete the folder from within the container before running the DBT pipeline again, it works.

What do you expect to happen

I expect DBT based blueprints to not fail every time after the first

How to reproduce

  • setup devlake
  • add any project (github, gitlab etc)
  • add a new advanced blueprint with dbt template with remote git url of a dummy dbt project
  • run the blueprint (should succeed)
  • run the blueprint again (should fail at the Git step)

Anything else

No response

Version

1.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/pluginsThis issue or PR relates to pluginsseverity/p1This bug affects functionality or significantly affect uxtype/bugThis issue is a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions