Skip to content

[eas-cli] Read .gitignore files inside dot-directories - #4537

Open
AndrewSouthpaw wants to merge 2 commits into
expo:mainfrom
AndrewSouthpaw:andrew/gitignore-dot-dirs
Open

AndrewSouthpaw wants to merge 2 commits into
expo:mainfrom
AndrewSouthpaw:andrew/gitignore-dot-dirs

Conversation

@AndrewSouthpaw

Copy link
Copy Markdown

Why

Fixes #4536. eas-cli skips .gitignore files inside dot-directories when it copies the project for the build archive, so files git ignores there get uploaded. For us that was a ~9 GB jest cache under .repo/.

How

Passes dot: true to the fg('**/.gitignore') call in Ignore.initIgnoreAsync. Also adds .git to the glob's ignore list so it doesn't walk .git/objects now that dot-directories are in play.

Test Plan

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build archive includes files ignored by a .gitignore inside a dot-directory

1 participant