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

[Feature] Only create the packages-install-path / dbt_packages folder if there are packages to install #9584

Closed
3 tasks done
dbeatty10 opened this issue Feb 15, 2024 · 0 comments · Fixed by #9810
Closed
3 tasks done
Labels
enhancement New feature or request file_system How dbt-core interoperates with file systems to read/write data help_wanted Trickier changes, with a clear starting point, good for previous/experienced contributors

Comments

@dbeatty10
Copy link
Contributor

dbeatty10 commented Feb 15, 2024

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature

Even if you don't have a packages.yml file, dbt will create a dbt_packages folder whenever you run a dbt command.

Rather, it should only create this directory when running dbt deps (and only if there is at least one package to install).

Describe alternatives you've considered

It doesn't do much harm to have an empty dbt_packages, but it does feel like unnecessary cruft in the current working directory.

Who will this benefit?

No response

Are you interested in contributing this feature?

No response

Anything else?

See also: #6985

Here's an example of the extra folder in the dbt Cloud IDE:

image
@dbeatty10 dbeatty10 added enhancement New feature or request triage help_wanted Trickier changes, with a clear starting point, good for previous/experienced contributors and removed triage labels Feb 15, 2024
@dbeatty10 dbeatty10 added the file_system How dbt-core interoperates with file systems to read/write data label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request file_system How dbt-core interoperates with file systems to read/write data help_wanted Trickier changes, with a clear starting point, good for previous/experienced contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant