astronomer/astronomer-cosmos

Cache dbt deps lock file

Opened this issue · 0 comments

Context

dbt 1.7 creates/uses a dbt dependencies lock file: package-lock.yml.

As of Cosmos 1.3, we did not take advantage of this feature. This task aims to cache this file using the same caching mechanism introduced in #904, so running dbt deps is quicker.

Acceptance criteria

  • When using ExecutionMode.LOCAL and ExecutionMode.VIRTUALENV, Cosmos should cache and try to reuse the package-lock.yml file in a similar way it does to partial_parse.msgpack