-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-3320] [Regression] DBT deps no longer working on git repository with subdirectory #9000
Comments
Seems possibly related to what's described in this comment: #6643 (comment) |
Thank you for opening @DanMawdsleyBA would you be able to provide the code for your |
Yeah I am using the subdirectory see below: packages:
- git: "https://github.com/BritishAirways-Ent/olympus-oprn-crw-ops-planning.git"
revision: "BADICREW-1-inc-0143754-easa-cabin-flight-crew-dashboard-data-hermes"
subdirectory: "src/sql/snowflake/airflow/dbt" |
@DanMawdsleyBA The way you do this looks wrong. Can you read https://docs.getdbt.com/docs/build/packages#private-packages and change your package file accordingly? |
@leo-schick This was previously working package on 1.5.5 so I would expect it to work on 1.7 . As mentioned by @jaypeedevlin I think it involves an issue with the package lock file incorrectly using sub directories (which didn't exist in 1.5.5) |
I can confirm that we've experienced a similar issue when upgrading to version 1.7. |
Reproducible exampleCreate a
Execute In 1.6, package is installed successfully:
In 1.7, get the following error:
|
Is this a regression in a recent version of dbt-core?
Current Behavior
Install dbt deps with a github repository using a subdirectory no longer works. I was using 1.5.5 previously but since upgrading to 1.7 deps is no longer working.
Expected/Previous Behavior
To be able to run deps from a GitHub repository like previously.
Steps To Reproduce
Run the dbt deps command with a packages file having a dependency on github repository with a subdirectory
Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
Below is the log output from 1.5.5
The text was updated successfully, but these errors were encountered: