-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
switch to stdlib namespaced functions, require stdlib 9.x #699
Conversation
(the tests install |
@bastelfreak would this be considered a breaking change? technically it's fixing a bug introduced by #691 which allowed stdlib 9.x without using the new namespaced name (insert raising fist emoji), so I'd lean to "no", but requirement bumps always give me headaches. Edit: OTOH, looking at CI logs, 9.3.0 has a non-namespaced version, and things did work with it:
So it was not a bug as such? |
@tuxmea I guess the following places should also be updated? puppet-php/manifests/phpunit.pp Line 26 in d5c3d66
Line 50 in d5c3d66
|
Done |
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.
I'm fine with the change, but unsure how to label that in terms of bug/enhancement/breaking.
I thought stdlib 9.x was breaking the old, non-namespaced calling of ensure_packages
(which would make this a bugfix), but it seems there is a shim and it works fine (emitting a deprecation warning), making this either an enhancement or a breaking change (depending on "is bumping a req a breaking change"). I lean towards enhancement.
As ensure_packages is available (and shows a deprecation) I would consider this to not be a breaking change. But I am open to other opinions. @bastelfreak what do you prefer? |
@@ -11,7 +11,7 @@ | |||
"dependencies": [ | |||
{ | |||
"name": "puppetlabs/stdlib", | |||
"version_requirement": ">= 4.16.0 < 10.0.0" | |||
"version_requirement": ">= 9.0.0 < 10.0.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.
Changing the lower version is a breaking change (e.g. users of version 7.0.0 will have unmet dependencies when updating, and ignoring it would break their catalog as the namespaced function is not available).
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.
LGTM!
No description provided.