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