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

ext: load C extension files from non-native gems via "require" #2301

Merged
merged 1 commit into from Aug 4, 2021

Conversation

flavorjones
Copy link
Member

@flavorjones flavorjones commented Aug 3, 2021

What problem is this PR intended to solve?

As reported in #2300, we should be loading the C extension relying on require and $LOAD_PATH and not using require_relative.

Have you included adequate test coverage?

No. This is a bit challenging to test, as we'd have to modify the gem installation (and delete the nokogiri.so files present under "lib/nokogiri"), and the regression value is pretty low (especially given the verbose comment in this PR).

That said, this change has adequate test coverage already in the gem-install CI pipeline, to ensure we don't break unmodified installations.

Does this change affect the behavior of either the C or the Java implementations?

No.

@flavorjones flavorjones added this to the v1.12.x patch releases milestone Aug 3, 2021
@flavorjones flavorjones added topic/installation Installation difficulties packaging/compile-from-source and removed topic/installation Installation difficulties labels Aug 3, 2021
@flavorjones flavorjones merged commit c77b0b0 into main Aug 4, 2021
@flavorjones flavorjones deleted the 2300-extension-location branch August 4, 2021 12:05
@flavorjones
Copy link
Member Author

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

Successfully merging this pull request may close these issues.

None yet

1 participant