workflow: managed
eas-cli
version: eas-cli/0.35.0 darwin-x64 node-v14.17.0
I use a package called git-rev-sync
to get the number of commits on the current branch to use as my build number in app.config.js
(ios:buildNumber
and android:versionCode
). This has worked great with the legacy expo build commands. However, when I try to run an EAS build, I get the follow error during the “Read app config” stage:
Error reading Expo config at /Users/expo/workingdir/build/app.config.js:
[git-rev-sync] failed to execute command: fatal: not a git repository (or any of the parent directories): .git
/undefined
The git-rev-sync
package is attempting to run the following command: git rev-list --count HEAD
using childProcess.spawnSync
if it’s available or falling back to shell.exec
. Any ideas on why this wouldn’t work on the eas build servers?
Perhaps there’s a better way to increment my build numbers? I saw that there an autoIncrement
option in the eas build config but that requires using app.json
which I assume is not a future-proof option.