Skip to content

fix: normalize Windows .gitignore archive paths#3826

Open
Peter7896 wants to merge 1 commit into
expo:mainfrom
Peter7896:peter7896/windows-archive-gitignore-prefixes
Open

fix: normalize Windows .gitignore archive paths#3826
Peter7896 wants to merge 1 commit into
expo:mainfrom
Peter7896:peter7896/windows-archive-gitignore-prefixes

Conversation

@Peter7896

Copy link
Copy Markdown

Summary

  • normalize Windows relative paths and nested .gitignore prefixes to forward slashes before prefix matching
  • treat directory paths as directories during archive copy filtering so rules like dist/ and .expo/ match the directory itself
  • add regression coverage for Windows-style nested .gitignore prefixes and directory rules

Root cause

Ignore.ignores() compared nested .gitignore prefixes captured with / against path.relative(...) results that use \ on Windows, so nested package ignore rules never matched during eas build:inspect --stage archive. Directory-only rules also needed the filter path normalized as a directory.

Testing

  • corepack yarn workspace eas-cli test src/vcs/__tests__/local-test.ts --runInBand
  • git diff --check

Fixes #3733

Signed-off-by: Peter7896 <hbubu7896@gmail.com>
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

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:inspect archive on Windows does not respect nested .gitignore entries

1 participant