-
Notifications
You must be signed in to change notification settings - Fork 89
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
pickle doesn't respect default configure options #152
Comments
Thanks. I will try to take a look at it! |
` php bin/pickle install --dry-run mongodb-stable
Confirmed still. The first 3 has default values. |
Also Mongodb started to use weird version again for beta, like 1.8.9beta1, which is not semver (pecl allows it), so we may add a notice at packaging time tho'. |
I'm aware that it's invalid per SemVer's BNF, but I was under the impression that this was the particular format required by PECL. Am I mistaken? The xdebug package uses similar tags, although that may not be saying much since @derickr was involved in both packages. |
On 13 July 2021 21:07:16 BST, Jeremy Mikola ***@***.***> wrote:
> Also Mongodb started to use weird version again for beta, like
1.8.9beta1, which is not semver (pecl allows it)
I'm aware that it's invalid per [SemVer's
BNF](https://semver.org/#backusnaur-form-grammar-for-valid-semver-versions),
but I was under the impression that this was the particular format
required by PECL. Am I mistaken?
The [xdebug](https://pecl.php.net/package/xdebug) package uses similar
tags, although that may not be saying much since @derickr was involved
in both packages.
It's what is the standard for PHP versions is, as documented with PHP's version_compare function: https://www.php.net/manual/en/function.version-compare.php
That's what PECL (and PEAR) versions were modeled after, way before semver was formalised.
So no, this is not weird, and very much in line with PECL and PEAR package versions look like.
|
Aloha, Weird is a bad word. Sorry, it is more about SemVer or not. In any case, we have two choices (sorry, PEAR is not part of that :), either we support fully version_compare or we follow SemVer only, which is what composer does. I tend to go with the later as it solves a load of issues when it comes to versioning and deps between composer and extensions, besides duplicating all comparison and check versions codes. Also PHP extensions are no longer in their own silos, there are more and more strong dependencies between Composer packages and extensions (hence the creation of pickle). Some standard to follow would be good, and there are little to no alternative but composer when it comes to PHP packages. So either makes end users life easier or developers life easier. Tough choice :) What do you think? |
@jmikola also it is not required by PECL. It is supported by PECL due to version_compare usage. This is a key difference. SemVer would work perfectly fine with PECL if used. |
Noted. Even if Another thought: Assuming the |
As of an extension using semver, there will be no issue if the version number is different. In pecl.php.net, the status is handled separately than the version. The version like 1.0.1beta1 exists to allow 1.0.1beta1, 1.0.1beta2 etc. which is redundant with the status and version numbers are infinite ;). Also I really really tend to go with SemVer for pickle and only support install with force mode for other. It will be an absolute nightmare for users to handle version deps with a completely different scheme. F.e. as of Mongo, given they have PHP and ext, I suppose it would make sense to have them using the same scheme. It is slightly more than spending time on implementing, it is also about spending time to explain to users why it is different and maintain that different scheme. :) |
For the
mongodb/mongo-php-driver
extension, pickle does not respect the default option for enabling SSL. In our config.m4,--with-openssl-dir
by default is set to true, but pickle uses--without-openssl-dir
when you use the-n
flag. It also uses--without-openssl-dir
when you just press enter for each of the options without-n
:The text was updated successfully, but these errors were encountered: