-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-1815] [Feature] Remove required 'version' from dbt_project.yml #6603
Comments
@seub Thanks for opening! It's a perfectly reasonable point. I can swing back later with a fuller answer. For now, just wanted to link some relevant thoughts I shared on this a while ago: #4453 (comment) In that comment, I suggested that this |
Love this suggestion @seub ! I distinctly remember when a colleague enlightened me that Looking forward to hearing more of your thoughts @jtcohen6. (I still need to write-up our discussion we had about that different mechanism -- will drop a link in this thread once I do so.) Some things for us to consider:
|
@dbeatty10 Without stealing any thunder from the forthcoming write-up — given that the only good reason I could come up with ~a year ago for continuing to require A colleague just asked a perfectly reasonable, related question:
These are entirely separate versioning schemes. The reason we had to call it @seub So - I'd be open to relaxing this. This will just require a few targeted one-line updates, to make this dbt-core/core/dbt/contracts/project.py Line 187 in 065ab2e
dbt-core/core/dbt/config/project.py Line 528 in 065ab2e
And we'd definitely want to update these docs: https://docs.getdbt.com/reference/project-configs/version#dbt_projectyml-versions Would you be interested in contributing that change? |
@jtcohen6 Thank you! Yes, let me try to contribute that change. |
@jtcohen6 @dbeatty10 Thank you for your encouragements! I'm stuck trying to get my dev setup to work for integration tests: |
We'll see if we can get to the bottom of that error -- I just sent a reply in Slack. |
Hi all, I created a PR to make the change. Thanks for your help @jtcohen6 and @dbeatty10 ! I did not add any tests. The current tests all passed. If you'd like me to add a unit or integration test, a tip would be great. I also created an issue to update the doc. |
My PR was broken due to an email mistake, I just replaced it with a new PR: #6718 |
Is this your first time submitting a feature request?
Describe the feature
At the moment, it is required that dbt projects include a
version
in their dbt_project.yml, which should be a semantic version, as mentioned in the dbt doc here.My dbt project is a git repo with its own process for creating and publishing its semantic versioning. The semantic version is not hard coded in the code base, but it is generated semi-automatically by our CI/CD. I imagine this is a common practice.
Therefore our dbt project has 2 semantic versions, the one in
dbt_project.yml
, which does not serve any meaningful purpose according to the dbt doc, and the git semantic version (tag).In summary, I suggest removing the required 'version' from dbt_project.yml, because:
Describe alternatives you've considered
No response
Who will this benefit?
All?
Are you interested in contributing this feature?
Sure
Anything else?
https://docs.getdbt.com/reference/project-configs/version
The text was updated successfully, but these errors were encountered: