Title: Revert "fix: run postinstall script explicitly with bash (#4116)" by jsjoeio · Pull Request #4231 · coder/code-server · GitHub
Open Graph Title: Revert "fix: run postinstall script explicitly with bash (#4116)" by jsjoeio · Pull Request #4231 · coder/code-server
X Title: Revert "fix: run postinstall script explicitly with bash (#4116)" by jsjoeio · Pull Request #4231 · coder/code-server
Description: Summary This reverts commit b32b4ed. We are reverting this because we found out that while this fixes the postinstall on Windows, it breaks it on mac and other devices. See: #3874 (comment) Additional Context This change came in #4116 came from @MaxLOh with the goal of: Currently, Windows default script-shell (cmd) fails to run the postinstall script. This commit fixes the problem by running postinstall.sh explicitly with the default bash executable of the OS. While that fixed the postinstall issue on Windows, it broke it for anyone installing with Homebrew since our formula does not depend on bash. Instead of modifying the formula, we are opting for reverting b32b4ed and using sh instead. Our reasoning is that if someone on Windows has bash, surely they have sh as well. Note: we don't know how @MaxLOh was actually installing code-server so we don't have an exact way to test for their situation but this should work. I had also proposed doing this: "scripts": { "postinstall": "[ $(command -v bash) >/dev/null ] && bash ./postinstall.sh || ./postinstall.sh" } but that assumes the person has command installed Windows which may or may not be the case. We think we should also try to add some tests for this, which we may do in a follow-up PR. Todos open up follow-up issue #4232 Fixes #3874 Fixes #4209
Open Graph Description: Summary This reverts commit b32b4ed. We are reverting this because we found out that while this fixes the postinstall on Windows, it breaks it on mac and other devices. See: #3874 (comment) Additio...
X Description: Summary This reverts commit b32b4ed. We are reverting this because we found out that while this fixes the postinstall on Windows, it breaks it on mac and other devices. See: #3874 (comment) Additio...
Opengraph URL: https://github.com/coder/code-server/pull/4231
X: @github
Domain: github.com
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a5efad0d-21f7-8bc7-692d-ede819a07c4f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C3C6:291B58:296E24E:34986CF:6B01DBCE |
| html-safe-nonce | ad3b6b496af775a408fec3644fb249472393f3d8c0408868c532da0f6b6792b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0M2OjI5MUI1ODoyOTZFMjRFOjM0OTg2Q0Y6NkIwMURCQ0UiLCJ2aXNpdG9yX2lkIjoiMTc4NjI0NDcwNTEyNjgzMzEwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d556a2ee4b13c3f533c99c83c14f8da5a20c8879ccac4151873b3097598728ca |
| hovercard-subject-tag | pull_request:741622742 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/coder/code-server/pull/4231/files |
| twitter:image | https://avatars.githubusercontent.com/u/3806031?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3806031?s=400&v=4 |
| og:image:alt | Summary This reverts commit b32b4ed. We are reverting this because we found out that while this fixes the postinstall on Windows, it breaks it on mac and other devices. See: #3874 (comment) Additio... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| 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 |
Links:
Viewport: width=device-width