Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1483117E6 for ; Fri, 28 Mar 2014 20:15:19 +0000 (UTC) Received: (qmail 4006 invoked by uid 500); 28 Mar 2014 20:15:18 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 3975 invoked by uid 500); 28 Mar 2014 20:15:17 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 3961 invoked by uid 99); 28 Mar 2014 20:15:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2014 20:15:16 +0000 Date: Fri, 28 Mar 2014 20:15:16 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4714) Allow removing a plugin that is a dependency (using -f or -force flag) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-4714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951316#comment-13951316 ] ASF GitHub Bot commented on CB-4714: ------------------------------------ Github user agrieve commented on the pull request: https://github.com/apache/cordova-plugman/pull/31#issuecomment-38963141 Going to close this given the work that's gone on since. Open a new one to continue on. > Allow removing a plugin that is a dependency (using -f or -force flag) > ---------------------------------------------------------------------- > > Key: CB-4714 > URL: https://issues.apache.org/jira/browse/CB-4714 > Project: Apache Cordova > Issue Type: Improvement > Components: CLI, Plugman > Affects Versions: 3.0.0 > Environment: Windows 8 > Reporter: Jonathan Bond > Assignee: Jonathan Bond > Priority: Minor > Labels: patch > Fix For: 3.5.0 > > Attachments: 0001-Use-plugman-emitter-of-events.patch, 0002-CB-4714-Pass-options-to-plugin-uninstall.patch > > > Some context: > I wanted to start using the mobile spec app for cordova. The problem is I didn't know which dependencies were required for the application. > So I created a plugin which just lists some dependencies: > https://github.com/jbondc/cordova-plugin-mobile-spec > > cordova create test > > cordova platform add android > >cordova plugin list > No plugins added. Use `cordova plugin add `. > >cordova plugin add https://github.com/jbondc/cordova-plugin-mobile-spec > >cordova plugin list > [ 'org.apache.cordova.core.battery-status', > 'org.apache.cordova.core.camera', > 'org.apache.cordova.core.device', > 'org.apache.cordova.core.file', > 'org.apache.cordova.core.media-capture', > 'org.apache.cordova.core.mobile-spec' ] > To test a modifications/patches to a specific plugin (media-capture), I wanted to do: > >cordova plugin rm org.apache.cordova.core.media-capture > [Error: Another top-level plugin (org.apache.cordova.core.mobile-spec) relies on plugin org.apache.cordova.core.media-capture, therefore aborting uninstallation > .] > A lot of dependency management systems (freebsd ports, debian packages) allow you to forcefully remove a dependency. > That's what I'm proposing: > >cordova plugin rm org.apache.cordova.core.media-capture -f > >cordova plugin list > [ 'org.apache.cordova.core.battery-status', > 'org.apache.cordova.core.camera', > 'org.apache.cordova.core.device', > 'org.apache.cordova.core.mobile-spec' ] > >cordova plugin add F:\Jonathan\GitHub\Cordova\cordova-plugin-media-capture > >cordova plugin list > [ 'org.apache.cordova.core.battery-status', > 'org.apache.cordova.core.camera', > 'org.apache.cordova.core.device', > 'org.apache.cordova.core.media-capture', > 'org.apache.cordova.core.mobile-spec' ] > It makes it easier to add/remove a plugin even if some dependencies are not met. > -- This message was sent by Atlassian JIRA (v6.2#6252)