Skip to content
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

Latest version is dev-master #52

Open
Mte90 opened this issue Oct 18, 2017 · 22 comments
Open

Latest version is dev-master #52

Mte90 opened this issue Oct 18, 2017 · 22 comments

Comments

@Mte90
Copy link

Mte90 commented Oct 18, 2017

When I run composer update this is the output


  - ocramius/package-versions (1.1.3) latest is dev-master
  - composer/installers (v1.4.0) latest is dev-master
  - wp-cli/autoload-splitter (v0.1.5) latest is dev-master
  - symfony/yaml (3.3.x-dev) latest is dev-master
  - symfony/dependency-injection (3.3.x-dev) latest is dev-master
  - ocramius/proxy-manager (2.1.x-dev) latest is dev-master
  - symfony/proxy-manager-bridge (3.3.x-dev) latest is dev-master
  - symfony/process (2.8.x-dev) latest is dev-master
  - symfony/options-resolver (3.4.x-dev) latest is dev-master
  - symfony/finder (3.4.x-dev) latest is dev-master
  - symfony/filesystem (2.8.x-dev) latest is dev-master
  - symfony/event-dispatcher (3.4.x-dev) latest is dev-master
  - symfony/debug (3.4.x-dev) latest is dev-master
  - symfony/console (3.3.x-dev) latest is dev-master
  - symfony/config (3.4.x-dev) latest is dev-master
  - seld/jsonlint (1.6.1) latest is dev-master
  - monolog/monolog (1.x-dev) latest is dev-master
  - justinrainbow/json-schema (5.2.5) latest is dev-master
  - phpro/grumphp (v0.12.0) latest is dev-master
  - webdevstudios/cmb2 (v2.2.5.3) latest is dev-trunk
  - yoast/i18n-module (3.0.0) latest is dev-master
  - xrstf/composer-php52 (v1.0.20) latest is dev-master
  - yoast/whip (1.1.0) latest is dev-master
  - wp-cli/wp-cli (v1.4.0) latest is dev-master
  - wp-cli/php-cli-tools (v0.11.8) latest is dev-master
  - rmccue/requests (v1.7.0) latest is dev-master
  - ramsey/array_column (1.1.3) latest is dev-master
  - nb/oxymel (v0.1.0) latest is dev-master
  - mustache/mustache (v2.12.0) latest is dev-master
  - wp-cli/mustangostang-spyc (0.6.3) latest is dev-master
  - symfony/translation (3.3.x-dev) latest is dev-master
  - dg/mysql-dump (v1.4.0) latest is dev-master
  - xamin/handlebars.php (v0.10.4) latest is dev-master
  - hautelook/phpass (0.3.3) latest is dev-master
  - mikemclin/laravel-wp-password (2.0.0) latest is dev-master
  - symfony/dom-crawler (3.4.x-dev) latest is dev-master
  - symfony/css-selector (3.4.x-dev) latest is dev-master
  - symfony/browser-kit (3.4.x-dev) latest is dev-master
  - stecman/symfony-console-completion (0.7.0) latest is dev-master
  - phpunit/php-text-template (1.2.1) latest is dev-master
  - theseer/tokenizer (1.1.0) latest is dev-master
  - phpdocumentor/type-resolver (0.4.0) latest is dev-master
  - phpdocumentor/reflection-docblock (4.1.1) latest is dev-master
  - phar-io/version (1.0.1) latest is dev-master
  - myclabs/deep-copy (1.x-dev) latest is dev-master
  - guzzlehttp/guzzle (6.3.0) latest is dev-master
  - codeception/codeception (2.3.x-dev) latest is dev-master
  - bacon/bacon-string-utils (1.1.0) latest is dev-master
  - lucatume/wp-browser-commons (1.2.8.2) latest is dev-master
  - lucatume/codeception-setup-local (1.0.3) latest is dev-master
  - antecedent/patchwork (2.1.5) latest is dev-master
  - lucatume/wp-browser (1.21.20) latest is dev-master
  - wpbp/widgets-helper (1.0.3) latest is dev-master
@soullivaneuh
Copy link
Owner

Could you please tell me which version of the plugin and composer you are using?

It should be fixed in #50

@Mte90
Copy link
Author

Mte90 commented Oct 19, 2017

I am using 2.0.3 version

@soullivaneuh
Copy link
Owner

Did you run a global or local installation of this plugin?

Also, could you please provide the full composer.json of your project?

@Mte90
Copy link
Author

Mte90 commented Nov 12, 2017

Downloading https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered and on ./plugin-name compuser update I get https://pastebin.com/zVB8EDPN
I uploaded on pastebin because are 772 lines of output.

@soullivaneuh
Copy link
Owner

I see only one possible thing: It use other platforms than packagist. I have to investigate.

If you have any fix to provide BTW, PR are welcomed! 😉

@Mte90
Copy link
Author

Mte90 commented Nov 15, 2017

Maybe a simple check if last version is dev-master don't print it if in the composer json is not specified that branch

@soullivaneuh
Copy link
Owner

Well, if we could do something proper like it was done here: dc64e0e

It would be great. :-)

@webmake
Copy link

webmake commented Jan 2, 2018

Hello, same problem for me. I just debugged that problem is due version attribute:
prettyVersion is dev-master
but version is 9999999-dev
so fails to compare versions within https://github.com/Soullivaneuh/composer-versions-check/blob/master/src/VersionsCheck.php#L40 or https://github.com/Soullivaneuh/composer-versions-check/blob/master/src/VersionsCheck.php#L58

My example is below
I used getVersion, getPrettyVersion to dump array

before sort
[["4.1.1.0","v4.1.1"],["4.1.2.0","v4.1.2"],["4.2.0.0","v4.2.0"],["9999999-dev","dev-master"]]
after sort
[["9999999-dev","dev-master"],["4.2.0.0","v4.2.0"],["4.1.2.0","v4.1.2"],["4.1.1.0","v4.1.1"]]

before sort
[["5.9999999.9999999.9999999-dev","v5.x-dev"],["9999999-dev","dev-master"]]
after sort
[["9999999-dev","dev-master"],["5.9999999.9999999.9999999-dev","v5.x-dev"]]

so final output

  - <info>laravel/package0</info> (<comment>v4.1.0</comment>) latest is <comment>dev-master</comment>

  - <info>laravel/package1</info> (<comment>v4.2.0</comment>) latest is <comment>dev-master</comment>
    Required by <info>laravel/package0</info> (<comment>^4.0.0</comment>)

@webmake
Copy link

webmake commented Jan 2, 2018

Okay, it turned out that problem was due my fault. I added one line "prefer-stable": true, into my composer.json file, and now sees proper versions. Filter on 48 line in mentioned file works perfect :)

@soullivaneuh
Copy link
Owner

Thanks for the info @webmake!

@Mte90 is your issue similar?

At least, could you please paste your full composer.json file so I will be able to reproduce the issue?

@Mte90
Copy link
Author

Mte90 commented Jan 11, 2018

No I am not using this value on my composer.

@soullivaneuh
Copy link
Owner

@Mte90 I tried with your composer.json file (sorry I forgot it was provided). Adding "prefer-stable": true option "solve" this issue.

It's a "normal" way because dev-master seems to be indeed always higher than a stable version or another branch according to composer.

It's still a kind of bug, but I can't solve it like you suggested on #52 (comment).

Example: If I set johnbillion/extended-cpts package to 4.1.0 (latest is 4.2.0), I'll have this message:

johnbillion/extended-cpts (4.1.0) latest is dev-master

If I simply ignore the dev-master case, the plugin will never tell your dependence is out of date. ⚠️

Any suggestion will be welcomed.

@Mte90
Copy link
Author

Mte90 commented Jan 11, 2018

Uhm maybe create a new section for the stuff on dev-master?
An example I am using a 4.0.9 version but the script will alert about to use dev-master but the latest version is 4.1.0.
So we have a trunk version and an official release, so maybe is better to alert about that in a different way.

@soullivaneuh
Copy link
Owner

@Mte90 Could you please elaborate with an output sample? I'm not sure to understand what you mean. 🤔

@soullivaneuh
Copy link
Owner

I tried the composer outdated command:

$ composer out
antecedent/patchwork                       2.1.7              dev-master 00eb113 Method redefinition (monkey-patching) functionality for PHP.
bacon/bacon-string-utils                   1.1.0              dev-master 3d7818a BaconStringUtils contain utitilies to work with strings.
codeception/codeception                    2.3.x-dev 666611f  dev-master 2e39bbb BDD-style testing framework
composer/installers                        v1.5.0             dev-master 049797d A multi-framework Composer library installer
dg/mysql-dump                              v1.4.0             dev-master 8970328 MySQL database dump.
facebook/webdriver                         1.5.x-dev 7c69d51  dev-master 575600d A PHP client for Selenium WebDriver
freemius/wordpress-sdk                     1.2.2.9            dev-master 5b420d7 Freemius WordPress SDK
guzzlehttp/guzzle                          6.3.0              dev-master aa5b807 Guzzle is a PHP HTTP client library
hautelook/phpass                           0.3.3              dev-master c3ea12e Portable PHP password hashing framework
johnbillion/extended-cpts                  4.1.0              dev-master 04c844e A library which provides extended functionality to WordPress custom post types and taxonomies.
julien731/wp-dismissible-notices-handler   1.0.0              dev-master e86a6dd A simple library to handle Ajax-dismissible admin notices for WordPress
julien731/wp-review-me                     2.0.1              dev-master cb43e76 A lightweight library to help you get more reviews for your WordPress theme/plugin
justinrainbow/json-schema                  5.2.6              dev-master 7d7f43a A library to validate a json schema.
lucatume/args                              1.0.1              dev-master f0189fc A PHP 5.2 compatible arguments handling library.
lucatume/codeception-setup-local           1.0.3              dev-master 0020cb2 Flexible local setup for Codeception
lucatume/function-mocker                   1.3.7              dev-master d7c3885 Function mocking with Patchwork
lucatume/wp-browser                        1.21.23            dev-master 27126dc WordPress extension of the PhpBrowser class.
lucatume/wp-browser-commons                1.2.8.2            dev-master bc97946 Common libraries of the WP-Browser package.
mikemclin/laravel-wp-password              2.0.0              dev-master 3460f1e Laravel package that checks and creates WordPress password hashes
monolog/monolog                            1.x-dev fd8c787    dev-master 7b99283 Sends your logs to files, sockets, inboxes, databases and various web services
mustache/mustache                          v2.12.0            dev-master fe8fe72 A Mustache implementation in PHP.
myclabs/deep-copy                          1.x-dev 9f80720    dev-master 057c454 Create deep copies (clones) of your objects
nb/oxymel                                  v0.1.0             dev-master 51094e9 A sweet XML builder
ocramius/package-versions                  1.2.0              dev-master ad8a245 Composer plugin that provides efficient querying for installed package versions (no runtime IO)
phar-io/version                            1.0.1              dev-master 7d57916 Library for handling version information and constraints
phpdocumentor/type-resolver                0.5.0              dev-master 0b589f9
phpro/grumphp                              v0.12.1            dev-master 024dab5 A composer plugin that enables source code quality checks.
phpunit/php-code-coverage                  5.3.x-dev 982ce79  dev-master 6f71fc1 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator                  1.4.x-dev 730b01b  dev-master 8539c45 FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template                  1.2.1              dev-master 3119f56 Simple template engine.
phpunit/php-timer                          1.0.x-dev 9513098  dev-master e73a731 Utility class for timing
phpunit/php-token-stream                   2.0.x-dev 13eb9ab  dev-master a60fc2a Wrapper around PHP's tokenizer extension.
phpunit/phpunit                            6.5.x-dev cbb36a6  dev-master f1068d8 The PHP Unit Testing framework.
phpunit/phpunit-mock-objects               5.0.x-dev e244c19  dev-master 74826a1 Mock Object library for PHPUnit
ramsey/array_column                        1.1.3              dev-master cf233e3 Provides functionality for array_column() to projects using PHP earlier than version 5.5.
rmccue/requests                            v1.7.0             dev-master 4055bc4 A HTTP library written in PHP, for human beings.
seld/jsonlint                              1.7.0              dev-master fa406a6 JSON Linter
symfony/config                             3.4.x-dev cfd5c97  dev-master d9896fb Symfony Config Component
symfony/console                            3.3.x-dev 56f07f6  dev-master 275c56f Symfony Console Component
symfony/debug                              3.4.x-dev 603b95d  dev-master d6bc1c9 Symfony Debug Component
symfony/dependency-injection               3.3.x-dev e63cd81  dev-master a0dc65f Symfony DependencyInjection Component
symfony/event-dispatcher                   3.4.x-dev 26b87b6  dev-master 779015e Symfony EventDispatcher Component
symfony/filesystem                         2.8.x-dev 1f4e835  dev-master 94281d2 Symfony Filesystem Component
symfony/finder                             3.4.x-dev 613e263  dev-master db4ab92 Symfony Finder Component
symfony/options-resolver                   3.4.x-dev f31f4d3  dev-master d9bb3fe Symfony OptionsResolver Component
symfony/process                            2.8.x-dev ea3226d  dev-master d34b43a Symfony Process Component
symfony/proxy-manager-bridge               3.3.x-dev 82b0600  dev-master 7c52185 Symfony ProxyManager Bridge
symfony/translation                        3.3.x-dev 96be707  dev-master 3940024 Symfony Translation Component
symfony/yaml                               3.3.x-dev 7c80d81  dev-master e428409 Symfony Yaml Component
theseer/tokenizer                          1.1.0              dev-master cb2f008 A small library for converting tokenized PHP source code into XML and potentially other formats
webdevstudios/cmb2                         v2.3.0             dev-master a1778c2 CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.
wp-cli/autoload-splitter                   v0.1.5             dev-master fb4302d Composer plugin for splitting a generated autoloader into two distinct parts.
wp-cli/mustangostang-spyc                  0.6.3              dev-master 6aa0b4d A simple YAML loader/dumper class for PHP (WP-CLI fork)
wp-cli/php-cli-tools                       v0.11.8            dev-master 363c753 Console utilities for PHP
wp-cli/wp-cli                              v1.4.1             dev-master 929a1b2 A command line interface for WordPress
wpbp/backbone-modal-view                   1.0.2              dev-master bb89a22 Add on a button a Backbone Modal View with a list for WordPress
wpbp/cpt_columns                           1.0.1              dev-master 6cc1b2f Improve the CPT list in the backend for your CPTs
wpbp/cronplus                              1.0.3              dev-master 49d5ca9 Add/Remove a WordPress Cron job easily
wpbp/debug                                 1.0.1              dev-master bf658a9 Add to your plugin the Debug Bar support (work also on Query Monitor)
wpbp/fakepage                              1.0.0              dev-master c867679 Generate a fake page on the fly
wpbp/language                              1.0.0              dev-master 637e118 Function wrapper for register,unregister,get language and get string for WPML, Polylang and Ceceppa Multilingua
wpbp/pointerplus                           1.0.0              dev-master 605a383 Super pointer creation for WP Admin
wpbp/requirements                          1.0.0              dev-master f293c8f Library for handling minimum system requirements in WordPress Plugins
wpbp/template                              1.0.2              dev-master 278fea3 Load template files with autosearch and support for multilanguage folder for email template
wpbp/widgets-helper                        1.0.3              dev-master 4f674ac A class to ease creating powered Widgets on WordPress 
xamin/handlebars.php                       v0.10.4            dev-master 38c743f Handlebars processor for php
xrstf/composer-php52                       v1.0.20            dev-master bd41459
yoast/i18n-module                          3.0.0              dev-master 7fff39c Handle i18n for WordPress plugins.
yoast/whip                                 1.1.0              dev-master f83964e A WordPress package to nudge users to upgrade their software versions (starting with PHP)
zendframework/zend-code                    3.3.x-dev 86e2ab6  dev-master 6b1059d provides facilities to generate arbitrary code using an object oriented interface
zendframework/zend-eventmanager            3.3.x-dev 969821a  dev-master 5079ece Trigger and listen to events within a PHP application

The result is the same (except commit sha are shown). So I don't know if the result of this plugin is really a bug.

@Mte90
Copy link
Author

Mte90 commented Jan 11, 2018

Take this user case example:

  • composer.json with 20 dependences
  • 15 have the last version but on 10 of them there is new stuff on dev-master and the other 5 no
  • 5 have outdated version
  • prefer-stable not defined

What will happen?
Like now will alert on 10 that have the last release and 5 that are outdated will alert about dev-master as new release.

I am right?

@soullivaneuh
Copy link
Owner

It should show only the 5 outdated dependencies, like composer outdated. But this is not your case, is it?

@Mte90
Copy link
Author

Mte90 commented Jan 16, 2018

bacon/bacon-string-utils                   1.1.0              dev-master 3d7818a BaconStringUtils contain utitilies to work with strings.
codeception/codeception                    2.3.x-dev 1e35b1a  dev-master 2e39bbb BDD-style testing framework
composer/ca-bundle                         dev-master 943b2c4 dev-master 134242f Lets you find a path to the system CA bundle, and includes a fal...
composer/composer                          dev-master 29bce30 dev-master 015927d Composer helps you declare, manage and install dependencies of P...
composer/installers                        v1.4.0             dev-master 049797d A multi-framework Composer library installer
composer/spdx-licenses                     dev-master 4238e4b dev-master 2d899e9 SPDX licenses list and validation library.
dg/mysql-dump                              v1.4.0             dev-master 8970328 MySQL database dump.
doctrine/collections                       dev-master 42c4039 dev-master ba63bf9 Collections Abstraction library
doctrine/inflector                         dev-master 40daa06 dev-master 7344124 Common String Manipulations with regard to casing and singular/p...
doctrine/instantiator                      dev-master 7af8066 dev-master 8520afa A small, lightweight utility to instantiate objects in PHP witho...
facebook/webdriver                         1.5.x-dev 86b5ca2  dev-master 575600d A PHP client for Selenium WebDriver
freemius/wordpress-sdk                     1.2.2.9            dev-master 5b420d7 Freemius WordPress SDK
gitonomy/gitlib                            dev-master 9ff6537 dev-master 1c2b060 Library for accessing git
guzzlehttp/guzzle                          6.3.0              dev-master aa5b807 Guzzle is a PHP HTTP client library
guzzlehttp/promises                        dev-master e9cdab6 dev-master 2e48ae6 Guzzle promises library
hautelook/phpass                           0.3.3              dev-master c3ea12e Portable PHP password hashing framework
illuminate/contracts                       dev-master 1ada7e7 dev-master a799b9b The Illuminate Contracts package.
illuminate/support                         dev-master 51eed81 dev-master 41319d4 The Illuminate Support package.
johnbillion/extended-cpts                  4.2.0              dev-master 04c844e A library which provides extended functionality to WordPress cus...
julien731/wp-dismissible-notices-handler   1.0.0              dev-master e86a6dd A simple library to handle Ajax-dismissible admin notices for Wo...
julien731/wp-review-me                     2.0.1              dev-master cb43e76 A lightweight library to help you get more reviews for your Word...
justinrainbow/json-schema                  5.2.6              dev-master 7d7f43a A library to validate a json schema.
lucatume/codeception-setup-local           1.0.3              dev-master 0020cb2 Flexible local setup for Codeception
lucatume/wp-browser                        1.21.22            dev-master d23464b WordPress extension of the PhpBrowser class.
lucatume/wp-browser-commons                1.2.8.2            dev-master bc97946 Common libraries of the WP-Browser package.
mikemclin/laravel-wp-password              2.0.0              dev-master 80e3a38 Laravel package that checks and creates WordPress password hashes
monolog/monolog                            1.x-dev fd8c787    dev-master 7b99283 Sends your logs to files, sockets, inboxes, databases and variou...
mustache/mustache                          v2.12.0            dev-master fe8fe72 A Mustache implementation in PHP.
myclabs/deep-copy                          1.x-dev 103e211    dev-master 057c454 Create deep copies (clones) of your objects
nb/oxymel                                  v0.1.0             dev-master 51094e9 A sweet XML builder
ocramius/package-versions                  1.2.0              dev-master ad8a245 Composer plugin that provides efficient querying for installed p...
phar-io/version                            1.0.1              dev-master 7d57916 Library for handling version information and constraints
phpdocumentor/reflection-common            dev-master 21bdeb5 dev-master 4bd3e3f Common reflection classes used by phpdocumentor to reflect the c...
phpdocumentor/reflection-docblock          dev-master c19b4d1 dev-master 86868b9 With this component, a library can provide support for annotatio...
phpdocumentor/type-resolver                0.4.0              dev-master 4f2d9c5
phpro/grumphp                              v0.12.1            dev-master a99c19e A composer plugin that enables source code quality checks.
phpspec/prophecy                           dev-master e4ed002 dev-master 9a84d1c Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage                  5.2.x-dev 7d7739f  dev-master 6f71fc1 Library that provides collection, processing, and rendering func...
phpunit/php-file-iterator                  dev-master 3cc8f69 dev-master 8539c45 FilterIterator implementation that filters files based on a list...
phpunit/php-text-template                  1.2.1              dev-master 3119f56 Simple template engine.
phpunit/php-timer                          dev-master d107f34 dev-master e73a731 Utility class for timing
phpunit/php-token-stream                   2.0.x-dev 13eb9ab  dev-master a60fc2a Wrapper around PHP's tokenizer extension.
phpunit/phpunit                            6.4.x-dev 4ab66ee  dev-master 5b78728 The PHP Unit Testing framework.
phpunit/phpunit-mock-objects               4.0.x-dev 11c3bde  dev-master 74826a1 Mock Object library for PHPUnit
ramsey/array_column                        1.1.3              dev-master cf233e3 Provides functionality for array_column() to projects using PHP ...
rmccue/requests                            v1.7.0             dev-master 4055bc4 A HTTP library written in PHP, for human beings.
sebastian/comparator                       dev-master 96f0814 dev-master c2019a4 Provides the functionality to compare PHP values for equality
sebastian/diff                             dev-master 52a3981 dev-master 0fd4d14 Diff implementation
sebastian/object-reflector                 dev-master e1b86d7 dev-master ff75508 Allows reflection of object attributes, including inherited and ...
seld/jsonlint                              1.6.2              dev-master fa406a6 JSON Linter
symfony/browser-kit                        dev-master 03ef903 dev-master 8f1614d Symfony BrowserKit Component
symfony/config                             3.4.x-dev 1de51a6  dev-master d9896fb Symfony Config Component
symfony/console                            3.3.x-dev 5549761  dev-master c44730e Symfony Console Component
symfony/css-selector                       dev-master 203661c dev-master 7db468c Symfony CssSelector Component
symfony/debug                              3.4.x-dev fb2001e  dev-master 47520c1 Symfony Debug Component
symfony/dependency-injection               3.3.x-dev ecbd330  dev-master a0dc65f Symfony DependencyInjection Component
symfony/dom-crawler                        dev-master 0b8cf41 dev-master e2ed2b8 Symfony DomCrawler Component
symfony/event-dispatcher                   3.4.x-dev ca20b8f  dev-master 779015e Symfony EventDispatcher Component
symfony/filesystem                         2.8.x-dev 15ceb67  dev-master 94281d2 Symfony Filesystem Component
symfony/finder                             3.4.x-dev dac8d7d  dev-master db4ab92 Symfony Finder Component
symfony/options-resolver                   3.4.x-dev 08748ed  dev-master d9bb3fe Symfony OptionsResolver Component
symfony/polyfill-mbstring                  dev-master 2ec8b39 dev-master 750a2b2 Symfony polyfill for the Mbstring extension
symfony/process                            2.8.x-dev d25449e  dev-master d34b43a Symfony Process Component
symfony/proxy-manager-bridge               3.3.x-dev 9bd2fd3  dev-master 7c52185 Symfony ProxyManager Bridge
symfony/translation                        3.3.x-dev 373e553  dev-master 3940024 Symfony Translation Component
symfony/yaml                               3.3.x-dev ba8e62c  dev-master e428409 Symfony Yaml Component
theseer/tokenizer                          1.1.0              dev-master cb2f008 A small library for converting tokenized PHP source code into XM...
webdevstudios/cmb2                         v2.2.6             dev-master a1778c2 CMB2 is a metabox, custom fields, and forms library for WordPres...
wp-cli/autoload-splitter                   v0.1.5             dev-master fb4302d Composer plugin for splitting a generated autoloader into two di...
wp-cli/cache-command                       dev-master 9c3d686 dev-master d82cba9 Manage object and transient caches.
wp-cli/checksum-command                    dev-master 64a5b2b dev-master e7e6128 Verifies file integrity by comparing to published checksums.
wp-cli/config-command                      dev-master 8cb8132 dev-master 84041af Manage the wp-config.php file.
wp-cli/core-command                        dev-master 6662f25 dev-master b1c3c1b Download, install, update and manage a WordPress install.
wp-cli/cron-command                        dev-master 6124392 dev-master 9da7e36 Manage WP-Cron events and schedules.
wp-cli/db-command                          dev-master a8a4a9d dev-master 2d39548 Perform basic database operations using credentials stored in wp...
wp-cli/entity-command                      dev-master 8d1e1d3 dev-master 27e4798 Manage WordPress core entities.
wp-cli/eval-command                        dev-master 1ea666e dev-master 9640d40 Execute arbitrary PHP code.
wp-cli/export-command                      dev-master ec18748 dev-master 4f7df86 Export WordPress content to a WXR file.
wp-cli/extension-command                   dev-master 42a2bbb dev-master 052ffc8 Manage WordPress plugins and themes.
wp-cli/import-command                      dev-master 29eb1d5 dev-master d2c21d5 Import content from a WXR file.
wp-cli/language-command                    dev-master b089274 dev-master 2a3d1ce Manage language packs.
wp-cli/media-command                       dev-master b067f7b dev-master cff1041 Import new attachments or regenerate existing ones.
wp-cli/mustangostang-spyc                  0.6.3              dev-master 6aa0b4d A simple YAML loader/dumper class for PHP (WP-CLI fork)
wp-cli/package-command                     dev-master 2dccbfa dev-master 1a3eefa Manage WP-CLI packages.
wp-cli/php-cli-tools                       v0.11.8            dev-master 363c753 Console utilities for PHP
wp-cli/rewrite-command                     dev-master eb6c25d dev-master 6b16958 Manage rewrite rules.
wp-cli/role-command                        dev-master edc642b dev-master be7f8ea Manage user roles and capabilities.
wp-cli/scaffold-command                    dev-master 4b4e9fc dev-master 6e5eede Generate code for post types, taxonomies, plugins, child themes,...
wp-cli/search-replace-command              dev-master caa107e dev-master 813977a Search/replace strings in the database.
wp-cli/server-command                      dev-master ed3d2b5 dev-master 6192e6d Launch PHP's built-in web server for this specific WordPress ins...
wp-cli/shell-command                       dev-master a918242 dev-master 507603a Opens an interactive PHP console for running and testing PHP code.
wp-cli/super-admin-command                 dev-master 314a3f7 dev-master 2982d2e Lists, adds, or removes super admin users on a multisite install.
wp-cli/widget-command                      dev-master bc22c02 dev-master 657e0f7 Adds, moves, and removes widgets; lists sidebars.
wp-cli/wp-cli                              v1.4.1             dev-master 691c3e4 A command line interface for WordPress
wpbp/backbone-modal-view                   1.0.2              dev-master bb89a22 Add on a button a Backbone Modal View with a list for WordPress
wpbp/cpt_columns                           1.0.1              dev-master 6cc1b2f Improve the CPT list in the backend for your CPTs
wpbp/cronplus                              1.0.3              dev-master 49d5ca9 Add/Remove a WordPress Cron job easily
wpbp/debug                                 1.0.1              dev-master bf658a9 Add to your plugin the Debug Bar support (work also on Query Mon...
wpbp/fakepage                              1.0.0              dev-master c867679 Generate a fake page on the fly
wpbp/language                              1.0.0              dev-master 637e118 Function wrapper for register,unregister,get language and get st...
wpbp/pointerplus                           1.0.0              dev-master 605a383 Super pointer creation for WP Admin
wpbp/requirements                          1.0.0              dev-master f293c8f Library for handling minimum system requirements in WordPress Pl...
wpbp/template                              1.0.2              dev-master 278fea3 Load template files with autosearch and support for multilanguag...
wpbp/widgets-helper                        1.0.3              dev-master 4f674ac A class to ease creating powered Widgets on WordPress 
xamin/handlebars.php                       v0.10.4            dev-master 38c743f Handlebars processor for php
xrstf/composer-php52                       v1.0.20            dev-master bd41459
yoast/i18n-module                          3.0.0              dev-master 7fff39c Handle i18n for WordPress plugins.
yoast/whip                                 1.1.0              dev-master f83964e A WordPress package to nudge users to upgrade their software ver...
zendframework/zend-code                    3.3.x-dev 86e2ab6  dev-master 6b1059d provides facilities to generate arbitrary code using an object o...
zendframework/zend-eventmanager            3.3.x-dev 969821a  dev-master 5079ece Trigger and listen to events within a PHP application

Looking at the update there I think that will show only 10.
Report all of them that a new version is on dev-master (few of them are marked in red) but no one is a new release.
I want to use project on that branch (because they don't have release) so the output like that and of this module is quite useless to me.

@Mte90
Copy link
Author

Mte90 commented Aug 21, 2018

I tried on patching with:

foreach ($this->outdatedPackages as $outdatedPackage) {
            if ($outdatedPackage->getLast()->getPrettyVersion() !== 'dev-master') {
                $output[] = sprintf(
                    '  - <info>%s</info> (<comment>%s</comment>) latest is <comment>%s</comment>',
                    $outdatedPackage->getActual()->getPrettyName(),
                    $outdatedPackage->getActual()->getPrettyVersion(),
                    $outdatedPackage->getLast()->getPrettyVersion()
                );
            }

but show a long output empty and not only the packages not as dev-master

@dereuromark
Copy link
Contributor

I now have the same issue in v 2.0.4 (and composer 2) with this plugin

 - cakephp/bake (2.2.0) latest is 9999999-dev
  - cakephp/cakephp (4.1.5) latest is 9999999-dev
  - cakephp/chronos (2.0.6) latest is 9999999-dev

If they are mapped as dev-master it shouldn't create this noise IMO, or there should be a way to exclude those.
As I am mainly interested in the ones outdated on semvar usage.
Those are all false positive (as dev-master here actually uses even newer than tag level)

@stepanenko3
Copy link

stepanenko3 commented Dec 22, 2020

Call $rootPackage->getPreferStable() in VersionsCheck.php always return FALSE, but in my composer.json prefer-stable = true and minimum-stability = stable

    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "minimum-stability": "stable",
        "prefer-stable" : true
    },
  - titasgailius/search-relations (1.0.6) latest is 9999999-dev
  - ua-parser/uap-php (v3.9.14) latest is 9999999-dev
  - vlucas/phpdotenv (v5.2.0) latest is 5.2.x-dev
  - voku/portable-ascii (1.5.6) latest is 9999999-dev

It works fine if I comment out line 47 and line 43: if (true === $rootPackage->getPreferStable()) {

robertfausk added a commit to knutschsoft/swapp that referenced this issue May 3, 2021
@dereuromark
Copy link
Contributor

You can now PR against https://github.com/dereuromark/composer-versions-check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants