cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Piotrowski (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-13141) `.git` folder in `/platforms` should not break `cordova plugin add`
Date Wed, 02 Aug 2017 16:15:00 GMT
Jan Piotrowski created CB-13141:
-----------------------------------

             Summary: `.git` folder in `/platforms` should not break `cordova plugin add`
                 Key: CB-13141
                 URL: https://issues.apache.org/jira/browse/CB-13141
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-cli
            Reporter: Jan Piotrowski


When .git folder is present in /platforms:

{code}
PS C:\Users\Jan\Documents\stromzaehler> ionic cordova plugin add cordova-plugin-app-version
> cordova plugin add cordova-plugin-app-version --save
× Running command - failed!

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova plugin add cordova-plugin-app-version --save
(exit code 1):

        Installing "cordova-plugin-app-version" for .git
        Failed to install 'cordova-plugin-app-version': Error: Your .git platform does not
have Api.js
        at Object.getPlatformApiFunction
        (C:\nvm\v8.1.3\node_modules\cordova\node_modules\cordova-lib\src\cordova\util.js:489:19)
        at Object.getPlatformApi
        (C:\nvm\v8.1.3\node_modules\cordova\node_modules\cordova-lib\src\platforms\platforms.js:56:25)
        at handleInstall (C:\nvm\v8.1.3\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:618:29)
        at C:\nvm\v8.1.3\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:379:28
        at _fulfilled (C:\nvm\v8.1.3\node_modules\cordova\node_modules\q\q.js:787:54)
        at self.promiseDispatch.done (C:\nvm\v8.1.3\node_modules\cordova\node_modules\q\q.js:816:30)
        at Promise.promise.promiseDispatch (C:\nvm\v8.1.3\node_modules\cordova\node_modules\q\q.js:749:13)
        at C:\nvm\v8.1.3\node_modules\cordova\node_modules\q\q.js:509:49
        at flush (C:\nvm\v8.1.3\node_modules\cordova\node_modules\q\q.js:108:17)
        at _combinedTickCallback (internal/process/next_tick.js:95:7)
        Error: Your .git platform does not have Api.js
{/code}


And when it is (temporarily) gone:

{code}
PS C:\Users\Jan\Documents\stromzaehler> ionic cordova plugin add cordova-plugin-app-version
> cordova plugin add cordova-plugin-app-version --save
√ Running command - done!
Installing "cordova-plugin-app-version" for android
Installing "cordova-plugin-app-version" for ios
Adding cordova-plugin-app-version to package.json
Saved plugin info for "cordova-plugin-app-version" to config.xml
{/code}

Hidden folders should not influence normal CLI usage, especially not with the .git folder
which is a very reasonable use case to track changes done by Cordova to the actual native
projects.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message