DBT Deps - how to create tar.gz for package in artifactory (tarball URL)

The problem I’m having

Using dbt-core, I am trying to install packages from a local repo which I have in artifactory. When I specify a tarball URL I get the following error:

External connection exception occurred: not a gzip file

The context of why I’m trying to do this

I have a local repo in artifactory. I am trying to place the dbt-utils package in that local repo. The way I am having to do it is by downloading the repo as a zip, extracting it and then creating a tar.gz from the folder that is extracted.

I imagine this is not the way to do it but I cannot find any help around what dbt expects the tar.gz to contain when specifying a tarball URL.

I need to understand more around what dbt is expecting from a tarball URL, is creating a tar.gz from the downloading the repo the correct thing to do?

Some example code or error messages

My packages file looks like below:

packages:
  - tarball: https:///###/artifactory/dbt_utils/dbt-utils.tar.gz
    name: dbt_utils

Error Message: External connection exception occurred: not a gzip file

Hi, I’m having the same issue, did you figure out a way to make it work?

Yes, we needed to either make the artifactory a Public repo so it would not need authentication to download packages. Or specify the username and password in the URL. for example,

https://username:password@