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 6530018BE2 for ; Fri, 28 Aug 2015 21:00:47 +0000 (UTC) Received: (qmail 66869 invoked by uid 500); 28 Aug 2015 21:00:47 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 66853 invoked by uid 500); 28 Aug 2015 21:00:47 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 66773 invoked by uid 99); 28 Aug 2015 21:00:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2015 21:00:47 +0000 Date: Fri, 28 Aug 2015 21:00:47 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9560) Issue using plugin restore for plugins with common dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9560?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1472056= 5#comment-14720565 ]=20 ASF GitHub Bot commented on CB-9560: ------------------------------------ Github user marcuspridham commented on the pull request: https://github.com/apache/cordova-lib/pull/288#issuecomment-135886715 =20 In serial it seems to be able to detect the file plugin is already inst= alled and does not try to install it again. The parallel way you can see i= n the logs that it does not see the plugin is installed yet so it runs the = install again. There is a race condition. > Issue using plugin restore for plugins with common dependencies > --------------------------------------------------------------- > > Key: CB-9560 > URL: https://issues.apache.org/jira/browse/CB-9560 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Reporter: Marcus Pridham > > Running into an annoying kind of race condition similar to CB-9278 but fo= r plugins. The issue comes up when you have multiple plugins being restore= d that have common dependencies. =20 > The way restore currently works it is adding all the plugins in config.xm= l at once. It does NOT wait for the first plugin and its dependencies to be= installed before adding the next plugin in the config.xml. This can cause= a plugin to be installed multiple times. You will get a message like the = following in the console: > Failed to install =E2=80=98cordova-plugin-inappbrowser':Error: Uh oh! > "/Users/i827005/dev/source/odata-demo/platforms/ios/ODataDemo/Plugins/cor= dova-plugin-inappbrowser/CDVInAppBrowser.m" already exists! -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org