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

Removing a plugin with multi-level dependencies does not removal all plugins

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.7.0
    • Labels:
      None

      Description

      I have 3 plugins that depend on each other. a depends on b that depends on c. a -> b -> c

      The problem is that if I install plugin a and remove it later it leaves plugin c for some reason.

      $ cordova plugin rm a
      Uninstalling 2 dangling dependent plugins.
      Uninstalling c from ios
      Uninstalling b from ios
      Preparing ios project
      Preparing ios project
      Uninstalling a from ios
      Preparing ios project
      Deleting plugin a
      Found 2 removable plugins. Deleting them.
      $ cordova plugins
      [ 'c' ]
      

      The sample plugins can be found here:
      https://github.com/marcuspridham/plugman-issue

      I'm using Cordova CLI 3.2.0-rc.1.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mpridham Marcus Pridham
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: