Title: bug(upgrade): EPERM crash on read-only .gitattributes · Issue #550 · github/squad · GitHub
Open Graph Title: bug(upgrade): EPERM crash on read-only .gitattributes · Issue #550 · github/squad
X Title: bug(upgrade): EPERM crash on read-only .gitattributes · Issue #550 · github/squad
Description: Description During cross-testing of the upgrade path across 23 repos, we found that ensureGitattributes() throws a raw EPERM stack trace when the file is read-only (e.g., on some CI/cloud environments or checked-out repos with restrictiv...
Open Graph Description: Description During cross-testing of the upgrade path across 23 repos, we found that ensureGitattributes() throws a raw EPERM stack trace when the file is read-only (e.g., on some CI/cloud environme...
X Description: Description During cross-testing of the upgrade path across 23 repos, we found that ensureGitattributes() throws a raw EPERM stack trace when the file is read-only (e.g., on some CI/cloud environme...
Opengraph URL: https://github.com/github/squad/issues/550
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug(upgrade): EPERM crash on read-only .gitattributes","articleBody":"## Description\nDuring cross-testing of the upgrade path across 23 repos, we found that ensureGitattributes() throws a raw EPERM stack trace when the file is read-only (e.g., on some CI/cloud environments or checked-out repos with restrictive permissions).\n\n## Steps to Reproduce\n1. Set .gitattributes to read-only\n2. Run squad upgrade\n3. Observe unhandled EPERM error\n\n## Expected Behavior\nGraceful error with actionable message telling the user to make the file writable.\n\n## Location\npackages/squad-cli/src/cli/core/upgrade.ts ~line 268 (ensureGitattributes)\n\n## Priority\nP2 - affects CI/cloud environments\n\n## Found By\nCross-testing agent EECOM during 23-repo upgrade validation\r\n","author":{"url":"https://github.com/bradygaster","@type":"Person","name":"bradygaster"},"datePublished":"2026-03-23T05:46:24Z","url":"https://github.com/github/squad/issues/550"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:27637c90-86c1-efdf-79d5-5b9df502e735 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E090:24645:10518D:15762B:6B018436 |
| html-safe-nonce | 27cfce78af4e645a5c0d16607ef8c16faf2b75e73aa7251ee8acb178691cba2e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDkwOjI0NjQ1OjEwNTE4RDoxNTc2MkI6NkIwMTg0MzYiLCJ2aXNpdG9yX2lkIjoiMzU3MDUwNjQ1NjQxNzUzNTAzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3d1bacb8d7b51b45ef3b299b332c431b6efe6032c6c43e99c4916970d541a58a |
| hovercard-subject-tag | issue:4118419231 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/550/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76d656315ca0d5e9ac333eebaecb18907e4286d361ea78c4c45b7d0a3e8293bf/github/squad/issues/550 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76d656315ca0d5e9ac333eebaecb18907e4286d361ea78c4c45b7d0a3e8293bf/github/squad/issues/550 |
| og:image:alt | Description During cross-testing of the upgrade path across 23 repos, we found that ensureGitattributes() throws a raw EPERM stack trace when the file is read-only (e.g., on some CI/cloud environme... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bradygaster |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width