Skip to content

SQL execution of dbt deps fails #5

@SudoCerb

Description

@SudoCerb

Hello,

I have successfully deployed a dbt project from my workspace but I want to fully automate the process.

I’ve encountered an issue when creating or altering a dbt project - dep installations do not work. I am able to go into my workspace, and deploy the project from there after running dbt deps in there, but this defeats the point of automation.

My user and role have the necessary privileges.

Here’s a snippet of my commands:

ALTER GIT FOO_DB.BAR_SCHEMA.FIZZ_GIT_REPO FETCH;

ALTER DBT PROJECT FOO_DB.BAR_SCHEMA.BAZ_DBT_PROJECT ADD VERSION FROM @foo_db.bar_schema.fizz_git_repo/branches/"dev";

-- the below appears to run successfully, not raising any errors, STDOUT shows the expected lines "Installing from... etc."
EXECUTE DBT PROJECT FOO_DB.BAR_SCHEMA.BAZ_DBT_PROJECT args='deps -t dev' external_access_integrations = (DBT_EXT_ACCESS);

EXECUTE DBT PROJECT FOO_DB.BAR_SCHEMA.BAZ_DBT_PROJECT args='run -t dev -x -s some.model.somewhere+';
I then get a compilation error:

Compilation Error
dbt found 4 package(s) specified in packages.yml, but only 0 package(s) installed in dbt_packages. Run "dbt deps" to install package dependencies.
I am able to run the model successfully by calling the last SQL command once I’ve ran dbt deps etc. and deployed the project via my workspace.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions