Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo EAS build failed : Failed to upload the project tarball to EAS Build

So, just like a normal day i wanna make an expo app, but this time it give me an error when i run "npx eas-cli build --profile development"

Compressing project files and uploading to EAS Build. Learn more: https://expo.fyi/eas-build-archive
× Compressing project files
Failed to upload the project tarball to EAS Build

Reason: Cannot copy 'C:\Users\F' to a subdirectory of itself, 'C:\Users\F\AppData\Local\Temp\eas-cli-nodejs\579c2de5-b407-437c-8a83-3af512494f85-shallow-clone'.
    Error: build command failed

please help me

like image 774
Finn Avatar asked Dec 30 '25 15:12

Finn


2 Answers

I fixed mine simply using git init, you can check here for detailed explanation.

just run the git init command on your project since EAS needs it to upload the files

https://github.com/expo/fyi/blob/main/eas-build-archive.md

like image 112
Scott Lexium Avatar answered Jan 02 '26 09:01

Scott Lexium


open the eas.json file, modify the cli object from this

"cli": {
    "version": ">= 12.5.1",
    "appVersionSource": "remote",
 }

to this

"cli": {
    "version": ">= 12.5.1",
    "appVersionSource": "remote",
    "requireCommit": true
 }
like image 28
Anthony phillips Avatar answered Jan 02 '26 09:01

Anthony phillips



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!