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

cleaner: rewrite node shebangs #17773

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

branchvincent
Copy link
Member

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Fixes Homebrew/homebrew-core#176257
Closes #17539

This rewrites node shebangs during cleanup, as we do for perl

$ brew install -s typescript && head -1 $(which tsc)
#!/opt/homebrew/opt/node/bin/node

Not sure if we need tests here? rewrite_shebangs doesn't have any yet, happy to try to add some

Copy link
Member

@Bo98 Bo98 left a comment

Choose a reason for hiding this comment

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

Cautiously approve but this will affect a ton of formulae so maybe worth holding until after the next Monday release (already got a lot of other big changes on master that's taken a while to stabilise).

We already have at least one formula that actually tries to undo all the Perl stuff here and that's not a very good sign as Cleaner should never break a formula: Homebrew/homebrew-core@b551b40. There is significantly less Perl formulae than Node formulae.

Ideally we'd have some way to roll this out more gradually.

@MikeMcQuaid
Copy link
Member

Cautiously approve but this will affect a ton of formulae so maybe worth holding until after the next Monday release (already got a lot of other big changes on master that's taken a while to stabilise).

Agreed 👍🏻

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Approving but marking as draft until next release.

@MikeMcQuaid MikeMcQuaid marked this pull request as draft July 25, 2024 12:30
@branchvincent
Copy link
Member Author

how do we feel about merging this now? I'm rebuilding node formulae for #17867 and having this would help us catch any potential issues quickly

@Bo98
Copy link
Member

Bo98 commented Jul 30, 2024

There will likely be a follow up release tonight with #17902 (if approved, else tomorrow).

@MikeMcQuaid MikeMcQuaid marked this pull request as ready for review July 30, 2024 07:34
@MikeMcQuaid
Copy link
Member

Thanks @branchvincent, good to go now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change all node formulas to use Homebrew-installed node rather than the first node on the path
3 participants