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

Warn when multiple packages have the same name #2029

Closed
drewbanin opened this issue Jan 3, 2020 · 1 comment
Closed

Warn when multiple packages have the same name #2029

drewbanin opened this issue Jan 3, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@drewbanin
Copy link
Contributor

Describe the feature

If multiple packages have the same name, then whichever package is loaded last will clobber the models/macros/etc provided by other identically-named packages. This is basically never desirable, so dbt should error when it happens.

Steps to reproduce

  1. Create a project with the name my_project and one model
  2. Create a package for that project also named my_project with no models
  3. A dbt run from the root package will not find any models.

Expected behavior

If multiple packages in a project have the same name, dbt should fail with an error:

dbt found more than one package with the name "{{ package_name }}" included in this project. Package names must be unique in a project. Please rename one of these packages.
@drewbanin drewbanin added the enhancement New feature or request label Jan 3, 2020
@drewbanin drewbanin added this to the Barbara Gittings milestone Jan 4, 2020
@drewbanin
Copy link
Contributor Author

closed by #2030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant