Github user daserge commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/308#discussion_r39896066
  
    --- Diff: cordova-lib/src/cordova/platform.js ---
    @@ -363,6 +363,7 @@ function remove(hooksRunner, projectRoot, targets, 
opts) {
                 platformMetadata.remove(projectRoot, target);
             });
         }).then(function() {
    +        opts.cordova.platforms = 
cordova_util.listPlatforms(opts.projectRoot);
    --- End diff --
    
    @vladimir-kotikov probably the root reason of the issue is in 
hooksRunner.opts.platforms [being set in 
platforms.js](https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/platform.js#L570)
 and then used in [refineOpts in 
HooksRunner](https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/hooks/HooksRunner.js#L69)
 - we will need to refine the way context.opts.cordova.platforms is used and 
properly document it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to