-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "fix: run postinstall script explicitly with bash (#4116)" #4231
Conversation
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)
Codecov Report
@@ Coverage Diff @@
## main #4231 +/- ##
=======================================
Coverage 65.09% 65.09%
=======================================
Files 36 36
Lines 1882 1882
Branches 380 380
=======================================
Hits 1225 1225
Misses 559 559
Partials 98 98 Continue to review full report at Codecov.
|
✨ Coder.com for PR #4231 deployed! It will be updated on every commit.
|
has this been tested on mac / windows / linux? if not happy to jump in and do so :) |
Thanks for offering Ben! Sadly, @code-asher came to the realize that this is not easily tested (at least with the way code-server is packaged up for Homebrew). We know I think we'll have to merge and then have the community test and report any issues. |
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:
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 usingsh
instead.Our reasoning is that if someone on Windows has
bash
, surely they havesh
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:
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
Fixes #3874
Fixes #4209