Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Master
-
None
-
None
Description
Failed to build mobilespec apk with all master code (w/o --global) on Windows on latest commit 7a8101 .
> cordova-mobile-spec\createmobilespec\createmobilespec.cmd --android
Creating project from local git repos. If you have any errors, it may be from missing repositories.
To clone repositories:
.\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r android -r js -r plugins
mkdir cordova-cli\node_modules
(cd cordova-lib\cordova-lib\ && npm install)
(cd cordova-plugman\ && npm install)
mkdir cordova-cli\node_modules
ln -s ..\..\cordova-lib\cordova-lib cordova-cli\node_modules
(cd cordova-cli && npm install)
To update all repositories:
.\cordova-coho\coho repo-update
Checking if you are using master branch of tools
refs/heads/master
fatal: Not a git repository (or any of the parent directories): .git
Two problems:
1. The error message is not straightforward do not know what next to fix
2. The cordova-lib\cordova-lib\ does not exist at all, that is how the fatal reported.
Workaound:
1. Append --skiplink will resolve
2. Or append --gloabl, but it will use npm registry version instead of local git, which is not what we want.