elementary icon indicating copy to clipboard operation
elementary copied to clipboard

add package-lock needed for dbt 1.8 in read-only deployments

Open noel opened this issue 1 year ago • 2 comments

When elementary is installed on a docker image in a read-only folder, dbt deps are run and that will generate a packages-lock file. The way to solve the packages issue is to include the lock file in the project. This PR will address this issue. The issue here is similar as it is related to running dbt deps in a read-only folder.

With this change, edr commands can be run as follows to address both issues.

               mkdir /tmp/elementary
                export DBT_TARGET_PATH=/tmp/elementary &&
                export DBT_PACKAGES_FOLDER=/tmp/elementary &&
                edr send-report --days-back 60

noel avatar Aug 12 '24 23:08 noel

This would be really helpful!

FrankTub avatar Sep 09 '24 14:09 FrankTub

Bumping this. Are you planning to make elementary dbt 1.8 compliant?

noel avatar Sep 29 '24 14:09 noel

Hi @noel ! Just merged these changes in a separate PR (needed to tweak a bit and add a pre-commit verification to the lock), this change will be included in the upcoming release.

Cheers, Itamar

haritamar avatar Nov 18 '24 16:11 haritamar

Hi @noel ! Just merged these changes in a separate PR (needed to tweak a bit and add a pre-commit verification to the lock), this change will be included in the upcoming release.

Cheers, Itamar

@haritamar : which PR? Is it already included in a recent release ?

sfortrie avatar Apr 25 '25 13:04 sfortrie