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

Marcus Pridham commented on CB-8993:
------------------------------------

I'm seeing this again also.  The problem is that prepare is being called 
multiple times and only one of those times does it have the searchpath in the 
options.  

The root of the problem is installPlatformsFromConfigXML.  After a platform is 
installed it calls prepare but the searchpath is not passed through 
installPlatformsFromConfigXML this results in the plugins being resolved from 
npm instead of the local searchpath...

> Plugin restore ignores search path
> ----------------------------------
>
>                 Key: CB-8993
>                 URL: https://issues.apache.org/jira/browse/CB-8993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Marcus Pridham
>            Assignee: Alexander Sorokin
>             Fix For: 5.1.2
>
>
> If I run the command:
> cordova prepare --searchpath ~/cordova-plugins
> I would expect the CLI to try restore plugins in the config.xml from the 
> provided searchpath.  Currently this parameter is ignored.
> I can get this to work if I modify the opts variable in cli.js and add:
> searchpath : args.searchpath,
> https://github.com/apache/cordova-cli/blob/master/src/cli.js#L179



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to