{"id":45176245,"url":"https://github.com/danoc/expo-cli-clear-bug","last_synced_at":"2026-02-20T09:33:27.418Z","repository":{"id":330576022,"uuid":"1123015547","full_name":"danoc/expo-cli-clear-bug","owner":"danoc","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-03T21:04:05.000Z","size":384,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-06T03:22:42.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danoc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-26T03:07:40.000Z","updated_at":"2025-12-27T21:00:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/danoc/expo-cli-clear-bug","commit_stats":null,"previous_names":["danoc/expo-cli-clear-bug"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danoc/expo-cli-clear-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danoc%2Fexpo-cli-clear-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danoc%2Fexpo-cli-clear-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danoc%2Fexpo-cli-clear-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danoc%2Fexpo-cli-clear-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danoc","download_url":"https://codeload.github.com/danoc/expo-cli-clear-bug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danoc%2Fexpo-cli-clear-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29647759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-20T09:33:27.335Z","updated_at":"2026-02-20T09:33:27.410Z","avatar_url":"https://github.com/danoc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expo CLI Bug: `expo export --clear` doesn't clear Metro cache\n\nMinimal reproduction for `@expo/cli@54.0.20+` where the `--clear` flag doesn't clear Metro's cache.\n\n## The Bug\n\nRunning `expo export --clear` with different environment variables produces **identical bundles** (same hash). The cache is not being cleared, causing builds to reuse cached bundles with old environment variables.\n\n## Reproduction\n\n```bash\nnpm install\nnpm run test:repro\n```\n\n**Expected:** Bundle hashes should be different\n**Actual:** Bundle hashes are identical (cache not cleared)\n\n## Testing the Fix\n\nThis repo includes a patch file that fixes the bug. You can apply and unapply it to see the difference:\n\n**Step 1: See the bug**\n```bash\nnpm run test:repro\n# 🐛 BUG: Bundle hashes are IDENTICAL\n```\n\n**Step 2: Apply the fix**\n```bash\nnpm run apply-fix\n# Patches @expo/cli with the resetCache fix\n```\n\n**Step 3: Verify the fix works**\n```bash\nnpm run test:repro\n# ✅ Bundle hashes are different - cache was cleared\n```\n\n**Step 4: Remove the fix (optional)**\n```bash\nnpm run unapply-fix\n# Reverts @expo/cli to original buggy state\n```\n\nYou can toggle between fixed and buggy states using `apply-fix` and `unapply-fix`.\n\n## Root Cause\n\nIn `@expo/cli@54.0.20` ([commit 34dd4b38a4](https://github.com/expo/expo/commit/34dd4b38a4)), the `resetCache` option was accidentally removed from Metro's config:\n\n**File:** `build/src/start/server/metro/instantiateMetro.js:146-160`\n\n```diff\n config = {\n   ...config,\n   watchFolders: ...,\n+  resetCache: options.resetCache,  // This line is missing\n   reporter: ...\n };\n```\n\n## Affected Versions\n\n- `@expo/cli@54.0.20+` (published Dec 18, 2024)\n- `expo@54.0.29+`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanoc%2Fexpo-cli-clear-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanoc%2Fexpo-cli-clear-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanoc%2Fexpo-cli-clear-bug/lists"}