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 BA3D8200C72 for ; Fri, 12 May 2017 13:51:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B8D7A160BA3; Fri, 12 May 2017 11:51:10 +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 DDFEF160BC8 for ; Fri, 12 May 2017 13:51:09 +0200 (CEST) Received: (qmail 94669 invoked by uid 500); 12 May 2017 11:51:08 -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 94399 invoked by uid 99); 12 May 2017 11:51:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2017 11:51:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2D9B0C0E1D for ; Fri, 12 May 2017 11:51:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id eco_Tq9HIQ1b for ; Fri, 12 May 2017 11:51:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E8FC85F36B for ; Fri, 12 May 2017 11:51:04 +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 7188BE0665 for ; Fri, 12 May 2017 11:51:04 +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 2CAC2242F5 for ; Fri, 12 May 2017 11:51:04 +0000 (UTC) Date: Fri, 12 May 2017 11:51:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12787) cordova@7 plugin add --link is broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 12 May 2017 11:51:10 -0000 [ https://issues.apache.org/jira/browse/CB-12787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16008006#comment-16008006 ] ASF GitHub Bot commented on CB-12787: ------------------------------------- GitHub user matrosov-nikita opened a pull request: https://github.com/apache/cordova-lib/pull/557 CB-12787: Fix plugin installation with --link option ### Platforms affected all ### What does this PR do? Fix logic for installation plugins with `--link` option. - Use `npm link` instead of `npm install` during plugin fetch. - Find symbolic links in plugin's dir for plugin removal ### What testing has been done on this change? ### Checklist - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. - [ ] Added automated test coverage as appropriate for this change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/matrosov-nikita/cordova-lib CB-12787 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-lib/pull/557.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #557 ---- commit 0eb176af7f6b00984f3d41320a1ff6f7f494928c Author: Nikita Matrosov Date: 2017-05-12T11:26:05Z CB-12787: Fix plugin installation with --link option ---- > cordova@7 plugin add --link is broken > ------------------------------------- > > Key: CB-12787 > URL: https://issues.apache.org/jira/browse/CB-12787 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-fetch, cordova-lib > Affects Versions: 7.0.0 > Reporter: Steve Gill > Labels: cordova-8.0.0 > > with the change to cordova-fetch for local paths, cordova plugin add SOMELOCALPATH --link doesn't work anymore. > The plugin first gets `npm installed` into your cordova project (so it now lives in node_modules), and then it gets copied into your plugins directory. During the copy to your plugins directory step, that is when the symlink gets created. So the symlink points to your node_modules/PLUGINDIR and not the local path to your plugin. > I believe the solution to fixing this would be to `npm link` the plugin instead of `npm install` when adding it with `--link` flag. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org