Giter Club home page Giter Club logo

composer-suggest's People

Contributors

nfreear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

amirbilu

composer-suggest's Issues

Bug: Your Composer plugin requirements are potentially harmful

Via email ...


On Thursday, 11 June 2015, 14:55, Jordi Boggiano wrote:

Heya,

I am sending you this email because you have a Composer Plugin on
https://packagist.org that requires the composer-plugin-api in
version * or 1.0.0.

Both of those are pretty dangerous:

  • * would mean your plugin can get loaded in any future composer
    including 2.0, and will probably break.
  • 1.0.0 means that your plugin will not be loaded anymore as soon as
    we add functionality and bump the plugin api to 1.1+

The solution is simple, open your composer.json and replace that require with:

    "composer-plugin-api": "^1.0"

Sorry for the trouble, the documentation had "1.0.0" in the plugin
example which mislead most plugin authors, but that is now fixed.

Cheers

Jordi Boggiano
@Seldaek - http://nelm.io/jordi

Fix "Defer to solver" - and PHP warning ...

PHP warning : undefined variable link:

Nick@~/workspace/player-packages/composer-suggest (master=)$ git diff

diff --git a/src/Suggest.php b/src/Suggest.php
index a0a10e4..507c731 100644
--- a/src/Suggest.php
+++ b/src/Suggest.php
@@ -162,7 +162,7 @@ EOF;
             } else {
                 // Defer to solver. TODO: ?
                 self::debug("Deferring duplicate <comment>{$name}</comment>");
-                $dups[] = $link;
+                $dups[ $name ] = $constraint;
             }
         }
         return $origin;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.