(PUP-10496) Fix parsing version range for regular version#8138
(PUP-10496) Fix parsing version range for regular version#8138Dorin-Pleava merged 1 commit intopuppetlabs:masterfrom
Conversation
|
Can one of the admins verify this patch? |
358822e to
f15ae31
Compare
|
Hi @Hexta! Thank you for using Puppet and showing interest in code contribution, but before reviewing your solution, we would really appreciate getting more information regarding the issue you've come across when using version ranges (such as the package provider used, operating system, package name or any other details that could help us reproduce the problem and manually check your fix against). We are asking this because the case (as currently explained in your pull request's description) should already be covered by letting each package provider handle Cheers! |
f15ae31 to
6f3a584
Compare
|
@luchihoratiu Hello Luchi! |
luchihoratiu
left a comment
There was a problem hiding this comment.
Besides some very small observations, this looks really good. I initially found the changes a bit inconsistent across providers but this is actually due to the current implementation and specifics each have (also double checked and indeed this wouldn’t make sense for the gem provider). They might get a bit more standardised at some point in a future refactoring.
I’ve manually tested the changes for each provider (pip and pip3 on macOS 10.14, apt on Ubuntu 20.04, yum on RedHat 8 and zypper on SLES 15) and they work as expected with previous functionality being unaffected. Thank you again @Hexta for your contribution. Great job!
6f3a584 to
b3723af
Compare
Fix parsing version range for simple version string like '1.2.3'.
b3723af to
8a47b42
Compare
|
@luchihoratiu Thank you for you comments! |
Dorin-Pleava
left a comment
There was a problem hiding this comment.
LGTM, and works as expected on Fedora.
One small thing before merging would be to add the JIRA ticket number in the PR title and in the PR commit:
(PUP-10496) Fix parsing version range for regular version
|
@Dorin-Pleava I've changed PR title. |
Fix parsing version range for simple version string like '1.2.3'.
Puppet Version: 6.11.0
Puppet Server Version: 6.11.0
OS Name/Version: Debian 9
Steps:
puppet resource package prometheus-client ensure='0.7.1' provider='pip3' --debugActual Behavior:
Debug log contains strange string: