dbt-labs / dbt-external-tables

dbt macros to stage external sources
https://hub.getdbt.com/dbt-labs/dbt_external_tables/latest/
Apache License 2.0
297 stars 119 forks source link

Version conflicts with dbt_utils when using dbt 0.19.2 #107

Closed pedromachados closed 3 years ago

pedromachados commented 3 years ago

Describe the bug

I'd like to use version 0.6.4 of the package with dbt 0.19.2 but am getting a conflict with dbt_utils. If I only specify dbt_external_tables in my packages.yml, it does not respect the version constraints and installs a package that requires dbt 0.20.

Steps to reproduce

  1. Use the following in packages.yml
packages:
  - package: dbt-labs/dbt_external_tables
    version: 0.6.4
  1. run dbt clean && dbt deps
  2. run dbt compile --> this will say that dbt_utils requires dbt 0.20

Expected results

It should install a version of dbt_utils < 0.7

Actual results

It installs the latest version of dbt_utils

Screenshots and log output

❯ dbt clean && dbt deps
Running with dbt=0.19.2
Checking target/*
 Cleaned target/*
Checking dbt_modules/*
 Cleaned dbt_modules/*
Finished cleaning all paths.
Running with dbt=0.19.2
Installing dbt-labs/dbt_external_tables@0.6.4
  Installed from version 0.6.4

Installing dbt-labs/dbt_utils@0.7.1
  Installed from version 0.7.1

System information

The contents of your packages.yml file:

packages:
  - package: dbt-labs/dbt_external_tables
    version: 0.6.4

Which database are you using dbt with?

The output of dbt --version:

❯ dbt --version
installed version: 0.19.2
   latest version: 0.20.1

Your version of dbt is out of date! You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation

Plugins:
  - postgres: 0.19.2
  - redshift: 0.19.2
  - bigquery: 0.19.2
  - snowflake: 0.19.2

The operating system you're using: Ubuntul 20.04 on WSL 2

The output of python --version: Python 3.8.10

Additional context

I also tried specifying both dbt_utils and dbt_external_tables in my packages.yml and was unable to find a combination that worked.

jtcohen6 commented 3 years ago

Thanks @pedromachados! It looks like the incorrect package dependency was defined on the Hub site. Fix for it is here: https://github.com/dbt-labs/hub.getdbt.com/pull/819

pedromachados commented 3 years ago

Thanks, Jeremy! It's working.