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

Use improved libprism source to build Prism without dependency on Ruby #400

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jan 10, 2025

Motivation

The main blocker for upstreaming Prism parser to Sorbet is that we currently rely on Ruby to build Prism, as its required by Prism's rake template task.

But if we can package the files generated by rake template in Prim's release (PR), we will be able remove the dependency on Ruby while significantly simplify the build configurations for Prism.

Test plan

See included automated tests.

@st0012 st0012 force-pushed the build-with-better-packaged-prism-release branch 2 times, most recently from e4005ba to 8d8f0bd Compare January 10, 2025 17:56
@egiurleo egiurleo mentioned this pull request Jan 10, 2025
@st0012 st0012 force-pushed the build-with-better-packaged-prism-release branch 2 times, most recently from 64db338 to d75e6b1 Compare January 10, 2025 20:38
@st0012 st0012 changed the title WIP Use improved libprism source to build Prism without dependency on Ruby Jan 10, 2025
The main blocker for upstreaming Prism parser to Sorbet is that we currently
rely on Ruby to build Prism, as its required by Prism's `rake template` task.

But by package the files generated by `rake template` in Prim's release,
we will be able to remove the dependency on Ruby while significantly simplify
the build configurations for Prism.
@st0012 st0012 force-pushed the build-with-better-packaged-prism-release branch from d75e6b1 to ac6e9a0 Compare January 10, 2025 21:21
Copy link

@amomchilov amomchilov left a comment

Choose a reason for hiding this comment

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

So simple, much wow!

@@ -5,9 +5,6 @@ on:
branches: [prism]
pull_request:
branches: [prism]
env:
RUBY_ROOT: '/opt/hostedtoolcache/Ruby/3.3.0/x64'

Choose a reason for hiding this comment

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

🏆

@egiurleo egiurleo marked this pull request as ready for review January 13, 2025 15:48
@egiurleo egiurleo mentioned this pull request Jan 13, 2025
@st0012 st0012 enabled auto-merge January 13, 2025 15:58
@st0012 st0012 merged commit 14b15d0 into prism Jan 13, 2025
1 check passed
@st0012 st0012 deleted the build-with-better-packaged-prism-release branch January 13, 2025 16:02
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.

3 participants