The .git folder seems to be included in the upload to EAS
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 236
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 91
Description
### Build/Submit details page URL
_No response_
### Summary
I got a warning saying "Your project archive is 159 MB. You can reduce its size and the time it takes to upload by excluding files that are unnecessary for the build process in .easignore file."
I used `eas build:inspect` to check what's being included. The output is as expected, except that it includes the full contents of the `.git` directory (not something I want shared).
I've tried explicitly adding `.git` and `/.git/**` to my `.easignore` but the directory is still included.
Here's my `.easignore` contents:
```
# Only include the app directory when uploading files to EAS
# Ignore everything
*
# Except the app directory and the contents of the directory
!app
!app/**
# Added to see if I can prevent .git from being included
.git
.git/**
```
### Managed or bare?
Managed
### Environment
expo-env-info 1.2.2 environment info:
System:
OS: Linux 6.11 Ubuntu 24.10 24.10 (Oracular Oriole)
Shell: 5.2.32 - /bin/bash
Binaries:
Node: 22.13.1 - ~/.nvm/versions/node/v22.13.1/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v22.13.1/bin/yarn
npm: 11.1.0 - ~/.nvm/versions/node/v22.13.1/bin/npm
npmPackages:
expo: ^52.0.30 => 52.0.30
react: 18.3.1 => 18.3.1
react-native: 0.76.6 => 0.76.6
npmGlobalPackages:
eas-cli: 15.0.3
Expo Workflow: managed
Enabled experimental React Native Directory checks. Unset the EXPO_DOCTOR_ENABLE_DIRECTORY_CHECK environment variable to disable this check.
✔ Check package.json for common issues
✔ Check Expo config for common issues
✔ Check native tooling versions
✔ Check if the project meets version requirements for submission to app stores
✔ Check for common project setup issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for app config fields that may not be synced in a non-CNG project
✔ Check for issues with Metro config
✔ Check npm/ yarn versions
✔ Validate packages against React Native Directory package metadata
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
### Error output
_No response_
### Reproducible demo or steps to reproduce from a blank project
* `npx create-expo-app@latest test`
* `cd test`
* `echo '*' >> .easignore`
* `eas build:inspect --platform android --stage archive --output ./target`
* `ls target/.git`
Output:
```
branches description hooks info objects refs
config HEAD index logs packed-refs shallow
```
Contributor guide
Assessment
This issue has not been assessed yet.