eas-cli: Error: git exited with non-zero code: 1
Build/Submit details page URL
No response
Summary
I am using biterise to run android build with command $ /Users/vagrant/git/project_git/node_modules/.bin/eas build -p android --profile develop --wait --non-interactive --local --output android.aab.
But it always throw git Error: git exited with non-zero code: 1
I have tested with yarn eas build:inspect -v -p android -s pre-build --profile $STAGE_NAME -o ./abc yarn eas build:inspect -v -p android -s archive–profile $STAGE_NAME -o ./abc yarn eas build:inspect -v -p android -s post-build --profile $STAGE_NAME -o ./abc
All have no problem.
The git and node version are all good.
What I doubt is that biterise will create a git folder underneath the Home folder, will this cause the problem?
Managed or bare?
managed
Environment
$ /Users/vagrant/git/project_git/node_modules/.bin/eas build -p android --profile develop --wait --non-interactive --local --output android.aab Error: git exited with non-zero code: 1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error output
$ /Users/vagrant/git/project_git/node_modules/.bin/eas build -p android --profile develop --wait --non-interactive --local --output android.aab Error: git exited with non-zero code: 1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Reproducible demo or steps to reproduce from a blank project
{ “cli”: { “version”: “>= 0.47.0” }, “build”: { “develop”: { “distribution”: “store”, “releaseChannel”: “develop_android_1.0.0_2”, “env”: { “UNIVERSAL_LINK_HOST”: “webapp.dev.[REDACTED].com”, “APP_VERSION”: “1.0.0”, “APP_BUILD_NUMBER”: “2”, “APP_NAME”: “FMClarity DEVELOP”, “APP_SLUG”: “[REDACTED]_develop”, “APP_IOS_BUNDLE_ID”: “com.[REDACTED].develop”, “APP_ANDROID_PACKAGE”: “com.[REDACTED].develop”, “APP_ANDROID_FCM_JSON_PATH”: “/Users/vagrant/git/project_git/.buildkite/develop-google-services.json”, “APP_API_BASEURL”: “https://api.dev.[REDACTED].com”, “BUGSNAG_API_KEY”: “[REDACTED]”, “APP_DEBUG_APP_JSON”: “true”, “RELEASE_CHANNEL”: “develop_android_1.0.0_2”, “MY_BUILD_PROFILE”: “develop” } } }, “submit”: { “production”: {} } }
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (6 by maintainers)
I am also getting this error around spawnAsync, but this is for a local ios EAS development build. I see suggestion to run DEBUG=* to get more info? How do I do that?
I could solve the issue for me. After deleting the ios folder it worked. Apparently we accidentally comitted it into our repo.
No I did not have Expo.plist ignored. Should I? The .expo folder is in my gitignore though.
I am not sure what your definition of bare is. I started with a managed project and then switched to eas, but never ejected.
Could be an XCode update…
Opening XCode and accepting the new EULA solved the issue above 🤔
project is bare when android and ios directory exists and it’s not gitignored
no, but error happened when cli attempted to run
git addonExpo.plistjust after creating it, If we know that file existed then the only explanation I’m aware of could be that that file (or directory) was gitingoredIf you had android and ios directory then you did. It happens if you run
expo prebuildexpo ejectorexpo run:ios/android