Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 553FB200D42 for ; Fri, 17 Nov 2017 15:58:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 54223160BFB; Fri, 17 Nov 2017 14:58:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 979EA160BF8 for ; Fri, 17 Nov 2017 15:58:14 +0100 (CET) Received: (qmail 80687 invoked by uid 500); 17 Nov 2017 14:58:13 -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 80671 invoked by uid 99); 17 Nov 2017 14:58:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2017 14:58:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D715F1A13FA for ; Fri, 17 Nov 2017 14:58:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hDgT_Lc-qZPJ for ; Fri, 17 Nov 2017 14:58:11 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id F1D375FBEA for ; Fri, 17 Nov 2017 14:58:10 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3CFD0E0ECF for ; Fri, 17 Nov 2017 14:58:10 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id EB29323F05 for ; Fri, 17 Nov 2017 14:58:09 +0000 (UTC) Date: Fri, 17 Nov 2017 14:58:09 +0000 (UTC) From: "Andrew Crites (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13589) Cordova fetch updates too aggressively and breaks itself MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Nov 2017 14:58:15 -0000 [ https://issues.apache.org/jira/browse/CB-13589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257082#comment-16257082 ] Andrew Crites commented on CB-13589: ------------------------------------ I'm actually not sure where to ask this, so pardon the editorial comment: I'm not sure what {{cordova-fetch}} does or why I would want to use it. It's substantially slower than using {{--nofetch}}, and it breaks in many cases such as the ones explained in this ticket. > Cordova fetch updates too aggressively and breaks itself > -------------------------------------------------------- > > Key: CB-13589 > URL: https://issues.apache.org/jira/browse/CB-13589 > Project: Apache Cordova > Issue Type: Bug > Reporter: Andrew Crites > Priority: Blocker > > Related: CB-11252 CB-12262 -- these issues say they are fixed, but I can still reproduce them. > Running {{cordova platform add}} with plugins directly from github or a file system path will update {{package.json}} in a way that subsequently breaks the plugin installation. To get around this, you must currently use {{cordova platform add $PLATFORM --nofetch}}. > For example: > {code} > > > > > {code} > On an initial {{cordova platform add}} this will work fine. However, this updates {{package.json}} to add these plugins as dependencies: > {code} > + "cordova-plugin-apprate": "git+https://github.com/pushandplay/cordova-plugin-apprate.git#0cc8b3b424491d35b1e571a69b21d2ae7cb9cff9", > + "phonegap-plugin-push": "file:src/local-plugins/phonegap-plugin-push", > {code} > Now try: > {code} > rm -rf node_modules platforms plugins > npx npm@5.4.2 install > npx cordova@7.1.0 platform add ios > {code} > for example. Plugin installation will be unsuccessful: > {code} > Failed to restore plugin "phonegap-plugin-push" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin file:src/local-plugins/phonegap-plugin-push via registry. > Failed to restore plugin "cordova-plugin-apprate" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin git+https://github.com/pushandplay/cordova-plugin-apprate.git#0cc8b3b424491d35b1e571a69b21d2ae7cb9cff9 via registry. > {code} > Manually removing the {{package.json}} update ({{\--nosave}} is broken CB-13463) or using {{\--nofetch}} will work. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org