Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5060

Plugman should not auto-remove installed plugins

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • cordova-plugman
    • None

    Description

      If you install a plugin manually as a top level plugin, but that plugin is also used as a dependency for a second plugin, then removing the second plugin should not remove the first plugin. Currently, this is the behavior:

      cordova plugin add file
      cordova plugin add file-transfer
      cordova plugin ls
      [file, file-transfer]
      cordova plugin rm file-transfer
      cordova plugin ls
      [  ]
      

      If you manually install a plugin, that means you are planning to use it. If another plugin depends on it, great, that's fine, whatever, but if you later decide not to use the consuming plugin, it shouldn't remove the one that you added.

      This is different than the reference counting issue in https://issues.apache.org/jira/browse/CB-5056

      Attachments

        Issue Links

          Activity

            People

              shepheb Braden Shepherdson
              mrbillau Michael Billau
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: