Closed GClunies closed 2 years ago
@GClunies Sorry for the hassle here!
I haven't done a tagged release (and don't think I intend to, there's a lot of projects living in this repo which makes named releases a bit weird). I think instead you'll want to point to a specific hash:
packages:
- package: dbt-labs/dbt_utils
version: [">=1.0.0-b1", "<2.0.0"]
install-prerelease: true #automatically get subsequent betas and the final shipping versions of v1
- git: https://github.com/dbt-labs/dbt-labs-experimental-features
subdirectory: insert_by_period
revision: 7180db61d26836b931aa6ef8ad9d70e7fb3a69fa
When I run dbt deps
with the above packages.yml, it works:
(dbt-prod) joel@Joel-Labes joel-sandbox % dbt deps
22:24:17 Running with dbt=1.2.0
22:24:23 Installing dbt-labs/dbt_utils
22:24:24 Installed from version 1.0.0-b1
22:24:24 Up to date!
22:24:24 Installing https://github.com/dbt-labs/dbt-labs-experimental-features
22:24:25 Installed from revision 7180db61d26836b931aa6ef8ad9d70e7fb3a69fa
22:24:25 and subdirectory insert_by_period
Thanks for getting back to me so quickly @joellabes! I tried your suggestion but ended up running into a dependency conflict with dbt-date 😵💫 .
For now, I will stick with...
packages:
- package: calogica/dbt_date
version: [">=0.6.0", "<0.7.0"]
# NOTE: This will warn on insert_by_period use for now
# See: https://github.com/dbt-labs/dbt-labs-experimental-features/issues/34
- package: dbt-labs/dbt_utils
version: 0.9.2
# TODO: use this for insert_by_period after release of dbt-core 1.3, dbt-utils 1.0, and dbt-date bumping to dbt_utils dep to version:[">=1.0.0", "<2.0.0"]
# - git: https://github.com/dbt-labs/dbt-labs-experimental-features
# subdirectory: insert_by_period
# revision: 7180db61d26836b931aa6ef8ad9d70e7fb3a69fa
... until the release of dbt-core 1.3, dbt-utils 1.0, and dbt-date bumping to dbt_utils dep to version:[">=1.0.0", "<2.0.0"].
Feel free to close this issue!
Ahhh yep we are in the messy middle time. Appreciate your flexibility and patience!
Describe the error
When running
dbt deps
to import dbt packages specified inpackages.yml
, any reference to the now movedinsert_by_period
materialization package results in an error on import.I am using the new
insert_by_period
reference because when I useinsert_by_period
fromdbt_utils
, dbt returns a poorly formatted warning message that makes it look like something has gone seriously wrong, when it has not.Steps to reproduce
Add package to
packages.yml
Run
dbt deps
Expected results
dbt should import the
insert_by_period
package without error.Actual results
See error described above.
Screenshots and log output
System information
The contents of your packages.yml file:
The output of dbt --version:
Additional context
Are you interested in contributing the fix?