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

Exclude compiled extension from gem #5818

Merged
merged 3 commits into from
Mar 4, 2022
Merged

Conversation

lildude
Copy link
Member

@lildude lildude commented Mar 4, 2022

Description

For a long time now we've been accidentally including the compiled C extension used by Linguist for token parsing when creating the gem.

This has gone unnoticed until #5808 because I used to build the gem on macOS and the resulting gem included the macOS library and not the Linux library. The Linux library would then have been built at the time of installation, hence no problem.

I've recently switched to using Codespaces and so now the Linux library is being built against the version of Ruby on the Codespace env at the time and then included in the gem, which at the time of building the 7.19.0 gem was running Ruby 2.7.2. This wouldn't be a problem in envs with Ruby 2.7 installed, but is if the env only has Ruby 3 installed.

This PR fixes that by explicitly excluding the macOS linguist.bundle and Linux linguist.so files when building the gem.

Once merged, I'll start a new release to get a working gem out.

Fixes #5808

[ Checklist removed as it doesn't apply ]

@lildude lildude requested a review from a team as a code owner March 4, 2022 11:11
Co-authored-by: John Gardner <[email protected]>
@lildude lildude merged commit 3c3b037 into master Mar 4, 2022
@lildude lildude deleted the lildude/exclude-bins-gem branch March 4, 2022 14:44
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation points to libruby.so.2.7 on Linux
2 participants