Skip to content

code-server 4.6.1 #109430

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

Closed
wants to merge 8 commits into from
Closed

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Sep 1, 2022

Created with brew bump-formula-pr in favor of #109321

@jsjoeio jsjoeio marked this pull request as draft September 1, 2022 21:38
@BrewTestBot BrewTestBot added bump-formula-pr PR was created using `brew bump-formula-pr` no Linux bottle Formula has no Linux bottle nodejs Node or npm use is a significant feature of the PR or issue labels Sep 1, 2022
@jsjoeio jsjoeio marked this pull request as ready for review September 1, 2022 21:46
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Sep 2, 2022

  Error: An exception occurred within a child process:
    NameError: uninitialized constant Language::Node

Hmm... gotta figure this out

@@ -27,7 +28,7 @@ class CodeServer < Formula

def install
node = Formula["node@16"]
system "yarn", "--production", "--frozen-lockfile"
system "npm", "install", *Language::Node.std_npm_install_args(libexec), "--unsafe-perm"
# @parcel/watcher bundles all binaries for other platforms & architectures
# This deletes the non-matching architecture otherwise brew audit will complain.
prebuilds = buildpath/"lib/vscode/node_modules/@parcel/watcher/prebuilds"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try removing the two rmtrees below, including this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I'll try that now.

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Sep 2, 2022

Really not sure on this one. The modules should be there but they're not. Going to see if I can reproduce locally and debug.

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Sep 2, 2022

Roughly speaking, this is what should be happening:

  1. code-server is installed from npm globally
  2. post installing it should run the postinstall script
  3. in the production release, we run this: https://github.com/coder/code-server/blob/90f603549adbcbb608041fda2138265523ff0353/ci/build/build-release.sh#L62
  4. something is going wrong with the postinstall but i can't tell looking at the homebrew CI logs so I'm a bit stumped

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Sep 2, 2022

Looks like we need a change in code-server to fix this. Once we do that, I'll update this PR. Relevant changes: coder/code-server#5533

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep this pull request open, add a help wanted or in progress label.

@github-actions github-actions bot added the stale No recent activity label Sep 5, 2022
@github-actions github-actions bot closed this Sep 6, 2022
@jsjoeio jsjoeio deleted the bump-code-server-4.6.1 branch September 6, 2022 16:24
@github-actions github-actions bot added the outdated PR was locked due to age label Oct 7, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` no Linux bottle Formula has no Linux bottle nodejs Node or npm use is a significant feature of the PR or issue outdated PR was locked due to age stale No recent activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants