-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
dbt deps prerelease install bugs + add install-prerelease parameter to packages.yml #3624
dbt deps prerelease install bugs + add install-prerelease parameter to packages.yml #3624
Conversation
['0.4.5a1', '0.4.5a2']), | ||
'0.4.5a2') | ||
|
||
self.assertEqual( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing the specific case raised by @lbk-fishtown in #3578
@@ -134,3 +136,15 @@ def test__resolve_to_specific_version(self): | |||
create_range(None, '<=0.0.5'), | |||
['0.0.3', '0.1.4', '0.0.5']), | |||
'0.0.5') | |||
|
|||
self.assertEqual( | |||
resolve_to_specific_version( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing the specific case raised in #3609
resolve_to_specific_version( | ||
create_range('>=1.0.0', '<1.2.0'), | ||
['1.0.0', '1.1.0a1', '1.1.0', '1.2.0a1', '1.2.0']), | ||
'1.1.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtcohen6 does the behaviour of the above four test cases make sense to you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those all look spot on!
resolve_to_specific_version( | ||
create_range('>=1.0.0', '<1.2.0'), | ||
['1.0.0', '1.1.0a1', '1.1.0', '1.2.0a1']), | ||
'1.1.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heroic work @NiallRees !!
Thanks for diving into the semver logic, and big props for doing it on such a quick turnaround. We can get this in for v0.20.1—and I agree that's the right place for this. It isn't a breaking change, except in the sense of changing a behavior that's buggy + unintuitive, and this will grant package maintainers much greater peace of mind going forward.
resolve_to_specific_version( | ||
create_range('>=1.0.0', '<1.2.0'), | ||
['1.0.0', '1.1.0a1', '1.1.0', '1.2.0a1', '1.2.0']), | ||
'1.1.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those all look spot on!
Thanks Niall and Jeremy for looking into this one! |
…o packages.yml (#3624) * Fix dbt deps prerelease install bugs * Add install-prerelease parameter to hub packages in packages.yml
|
||
Contributors: | ||
- [@NiallRees](https://github.com/NiallRees) ([#3623](https://github.com/dbt-labs/dbt/pull/3623)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what happened here 🙈 #3639
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries! This happens all the time...
Fix a typo introduced in #3624
Fix a typo introduced in #3624
Resolves #3578
Description
Adds logic to
compare
in semver.py to handle pre-release versions.Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.