Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CT-286] [Feature] dbt deps command improvements #4786

Closed
1 task done
alexrosenfeld10 opened this issue Feb 25, 2022 · 2 comments
Closed
1 task done

[CT-286] [Feature] dbt deps command improvements #4786

alexrosenfeld10 opened this issue Feb 25, 2022 · 2 comments
Labels
deps dbt's package manager enhancement New feature or request wontfix Not a bug or out of scope for dbt-core

Comments

@alexrosenfeld10
Copy link
Contributor

Is there an existing feature request for this?

  • I have searched the existing issues

Describe the Feature

I'm suggesting a few improvements / additions to the dbt deps command, and dependencies in general. Command syntax / structure can be anything - but here's some general idea:

dbt deps list: list out the dependencies and versions in the project, as well as the latest available version for each dependency
dbt deps update <dependency name> <optional version>: update the dependency to latest, or version if specified
dbt deps update: update all deps to latest

In addition to these commands, I think it'd be awesome to have dbt integrate with dependabot, and open PRs to update the package dependencies for users.

Describe alternatives you've considered

none, this isn't a must have or anything, it's all just QOL stuff.

Who will this benefit?

All users, especially ones on github that use dependabot.

Are you interested in contributing this feature?

Sure! If time allows.

Anything else?

No response

@alexrosenfeld10 alexrosenfeld10 added enhancement New feature or request triage labels Feb 25, 2022
@github-actions github-actions bot changed the title [Feature] dbt deps command improvements [CT-286] [Feature] dbt deps command improvements Feb 25, 2022
@jtcohen6 jtcohen6 added packages Functionality for interacting with installed packages Team:Language labels Feb 25, 2022
@emmyoop emmyoop self-assigned this Feb 28, 2022
@emmyoop
Copy link
Member

emmyoop commented Feb 28, 2022

Thanks for writing up this this request @alexrosenfeld10! I can see where you're coming from with the desire for dbt deps to behave like other package management.

dbt deps itself accomplishes a lot of this for projects hosted on the dbt Hub. Hub packages require a version to be specified to avoid unexpected breakages. But you can pin your package to the latest patch version from a specific minor release so that you will automatically get any patch releases when you run dbt deps. #3560 describes the reasoning for why we chose to do it this way and why it only works for Hub packages.

When you run dbt deps the output will be similar to a dbt ls listing the version you have installed and also if any updates are available (for Hub packages).

(env) basic-dbt % dbt deps
20:32:10  Running with dbt=1.0.1
20:32:11  Installing dbt-labs/dbt_utils
20:32:11    Installed from version 0.8.0
20:32:11    Updated version available: 0.8.1
20:32:11
20:32:11  Updates available for packages: ['dbt-labs/dbt_utils']
Update your versions in packages.yml, then run dbt deps

If you update the packages.yml file to have a dependency point to a newer version of the package, running dbt deps will update your package to the specified version, similar to a dbt update command.

As for the dependabot request, since dbt packages are their own kind of package, dependabot is not possible since it is not currently open to adding new ecosystems.

I'm going to close this as something we won't be fixing but feel free to comment if you have any follow up.

@emmyoop emmyoop closed this as completed Feb 28, 2022
@emmyoop emmyoop added wontfix Not a bug or out of scope for dbt-core and removed triage labels Feb 28, 2022
@jtcohen6 jtcohen6 added deps dbt's package manager and removed packages Functionality for interacting with installed packages labels Mar 30, 2022
@emmyoop emmyoop removed their assignment Apr 19, 2022
@devonlazarussonos
Copy link

@emmyoop, apologies for bring this back from deep archives...

We recently started looking into the idea of having Dependabot help with dbt dependency management in conjunctino with dbt 1.7+ package locking.

Looks like the maintainers of Dependabot may have changed their policy and are open to adding new package managers.

Is Dependabot integration with the dbt package manager something you'd consider these days given the apparent change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps dbt's package manager enhancement New feature or request wontfix Not a bug or out of scope for dbt-core
Projects
None yet
Development

No branches or pull requests

4 participants