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

Remove SourceReader::Inspec#prepare_load_path #1023

Merged
merged 1 commit into from
Sep 7, 2016

Conversation

stevendanna
Copy link
Contributor

We already monkeypatch require so that it is redirected through the
require_loader. All of the tests pass with this removal. We might
cause some breakage with this removal that we aren't testing, but given
that we are mucking with require it seems preferable to have one
mechanism by which we do that and solve any bugs with that single path.

Signed-off-by: Steven Danna steve@chef.io

We already monkeypatch require so that it is redirected through the
require_loader.  All of the tests pass with this removal.  We might
cause some breakage with this removal that we aren't testing, but given
that we are mucking with `require` it seems preferable to have one
mechanism by which we do that and solve any bugs with that single path.

Signed-off-by: Steven Danna <steve@chef.io>
@chris-rock
Copy link
Contributor

I agree, that we should have only one implementation of require. Great finding @stevendanna

@chris-rock chris-rock merged commit 9f980cf into master Sep 7, 2016
@chris-rock chris-rock deleted the ssd/remove-prepare_load_path branch September 7, 2016 08:43
@chris-rock chris-rock modified the milestone: 0.34.0 Sep 9, 2016
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.

None yet

3 participants