[ 
https://issues.apache.org/jira/browse/CB-14173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16526488#comment-16526488
 ] 

ASF GitHub Bot commented on CB-14173:
-------------------------------------

raphinesse closed pull request #26: CB-14173 Fix cordova <platform|plugin> add 
--link
URL: https://github.com/apache/cordova-fetch/pull/26
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/index.js b/index.js
index dfa51f7..5eb0831 100644
--- a/index.js
+++ b/index.js
@@ -69,8 +69,7 @@ function installPackage (target, dest, opts) {
 function npmArgs (target, userOptions) {
     const opts = Object.assign({ production: true }, userOptions);
 
-    const operation = opts.link ? 'link' : 'install';
-    const args = [operation, target];
+    const args = ['install', target];
 
     if (opts.production) {
         args.push('--production');


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> cordova-fetch nightly breaks with --link
> ----------------------------------------
>
>                 Key: CB-14173
>                 URL: https://issues.apache.org/jira/browse/CB-14173
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-fetch
>            Reporter: Darryl Pogue
>            Assignee: Raphael
>            Priority: Major
>
> A coworker just ran this:
> {code:java}
> npx cordova platform add --link ../cordova-ios/{code}
> It failed with this error:
> {noformat}
> Warning: using prerelease version 8.0.1-nightly.2018.6.26.77b7324f 
> (cordova-lib@8.0.1-nightly.2018.6.26.da4b4b37)
> { CordovaError: Could not determine package name from output:
> up to date in 6.878s
> [!] 3 vulnerabilities found [2885 packages audited]
>  Severity: 3 low
>  Run `npm audit` for more detail/usr/local/lib/node_modules/cordova-ios -> 
> /Projects/cordova-ios
> /Projects/launch-cordova-test/node_modules/cordova-ios -> 
> /usr/local/lib/node_modules/cordova-ios -> /Projects/cordova-ios
>  at getTargetPackageSpecFromNpmInstallOutput 
> (/Projects/launch-cordova-test/node_modules/cordova-fetch/index.js:97:15)
>  at _fulfilled (/Projects/launch-cordova-test/node_modules/q/q.js:854:54)
>  at /Projects/launch-cordova-test/node_modules/q/q.js:883:30
>  at Promise.promise.promiseDispatch 
> (/Projects/launch-cordova-test/node_modules/q/q.js:816:13)
>  at /Projects/launch-cordova-test/node_modules/q/q.js:624:44
>  at runSingle (/Projects/launch-cordova-test/node_modules/q/q.js:137:13)
>  at flush (/Projects/launch-cordova-test/node_modules/q/q.js:125:13)
>  at process._tickCallback (internal/process/next_tick.js:172:11)
>  name: 'CordovaError',
>  message: 'Could not determine package name from output:\nup to date in 
> 6.878s\n[!] 3 vulnerabilities found [2885 packages audited]\n Severity: 3 
> low\n Run `npm audit` for more 
> detail\n\n/usr/local/lib/node_modules/cordova-ios -> 
> /Projects/cordova-ios\n/Projects/launch-cordova-test/node_modules/cordova-ios 
> -> /usr/local/lib/node_modules/cordova-ios -> /Projects/cordova-ios',
>  code: 0,
>  context: undefined }{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to