[ 
https://issues.apache.org/jira/browse/CB-12974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raphael resolved CB-12974.
--------------------------
    Resolution: Fixed

Fixed by recent refactoring of cordova-fetch
{noformat}
$ time cordova platform add ios@4 -d
Warning: using prerelease version 8.0.1-nightly.2018.6.19.bbb14fbc 
([email protected])
No scripts found for hook "before_platform_add".
Using cordova-fetch for cordova-ios@4
Removing "cordova-" prefix from cordova-ios
Platform ios already added.
CordovaError: Platform ios already added.

real    0m0,847s
user    0m0,848s
sys     0m0,086s{noformat}

> Platform add should fail fast
> -----------------------------
>
>                 Key: CB-12974
>                 URL: https://issues.apache.org/jira/browse/CB-12974
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-fetch, cordova-lib
>            Reporter: Jesse MacFadyen
>            Priority: Major
>
> We should fail fast if the platform is already installed.
> {code}
> 🚀 time cordova platform add ios@4 -d
> Warning: using prerelease version 7.0.2-dev ([email protected])
> No scripts found for hook "before_platform_add".
> Using cordova-fetch for cordova-ios@4
> saving
> Running command: npm install cordova-ios@4 --save
> Command finished with error code 0: npm install,cordova-ios@4,--save
> Removing "cordova-" prefix from cordova-ios
> Error: Platform ios already added.
> real  0m14.939s
> user  0m7.347s
> sys   0m2.453s
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to