Skip to content
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

code-server 4.0.1 #92582

Closed
wants to merge 8 commits into from
Closed

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Jan 5, 2022

Created with brew bump-formula-pr.

Notes to self

It looks like VS Code switched to using @parcel/watcher for their file system watcher in October 2021. @parcel/watcher includes all the binaries in the npm package: darwin, linux, and win32 which appears to be causing this build issue for us.

We think we can fix it by modifying our formula to delete the non-native binaries after running yarn install

@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 Jan 5, 2022
Formula/code-server.rb Outdated Show resolved Hide resolved
Formula/code-server.rb Outdated Show resolved Hide resolved
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Jan 5, 2022

==> FAILED
Full audit code-server --online --git --skip-style output
  code-server:
    * Binaries built for a non-native architecture were installed into code-server's prefix.
      The offending files are:
        /opt/homebrew/Cellar/code-server/4.0.1/libexec/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/darwin-x64/node.napi.glibc.node	(x86_64)
  Error: 1 problem in 1 formula detected

Hmm...any suggestions on how to fix this?

@carlocab
Copy link
Member

carlocab commented Jan 6, 2022

You could try deleting them on ARM, since they shouldn't be run -- we don't guarantee that a user has Rosetta installed.

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Jan 6, 2022

Hmm...We added a step to delete them on ARM but the audit still failed. Any ideas @carlocab?

Formula/code-server.rb Outdated Show resolved Hide resolved
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Jan 7, 2022

Hmm...it failed but for different error here

  Error: An exception occurred within a child process:
    NoMethodError: undefined method `/' for nil:NilClass

Is it upset with the / after testpath?

Formula/code-server.rb Outdated Show resolved Hide resolved
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
@carlocab carlocab added the CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. label Jan 7, 2022
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Jan 7, 2022

On the bright side, I know how to fix this 😄

==> FAILED
Full audit code-server --online --git --skip-style output
  code-server:
    * Binaries built for a non-native architecture were installed into code-server's prefix.
      The offending files are:
        /usr/local/Cellar/code-server/4.0.1/libexec/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/prebuilds/darwin-arm64/node.napi.glibc.node	(arm64)

Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks, @jsjoeio!

@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

@jsjoeio jsjoeio deleted the bump-code-server-4.0.1 branch January 8, 2022 16:21
@github-actions github-actions bot added the outdated PR was locked due to age label Feb 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 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` CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants