Adjust path in require statement to work with Ruby 1.9.2 and later#2
Open
skissane wants to merge 2 commits intohaberman:masterfrom
Open
Adjust path in require statement to work with Ruby 1.9.2 and later#2skissane wants to merge 2 commits intohaberman:masterfrom
skissane wants to merge 2 commits intohaberman:masterfrom
Conversation
In Ruby 1.9.2 and later, the current directory has been removed from the LOAD_PATH, due to security reasons. This causes an error when running make. The solution is to prefix the module name with ./ to force it to be loaded from the current directory.
Ignores all files generated by running make
|
FWIW I just ran into this issue. I worked around it with (I don't know Ruby so this took some Googling to figure out, and then I encountered this issue.) This is a nice piece of code, I linked it here :) |
andychu
pushed a commit
to oilshell/vtparse
that referenced
this pull request
Dec 30, 2018
|
:D Funily I also provided a fix for this, now 5 years later... a shame the author does not care about the pull requests... |
Owner
|
Sorry I haven't maintained this well. This is some code I wrote 17 years ago for a project I was doing at the time, but I no longer have the time or interest to maintain it. If you find it useful I'd encourage you to adopt it. If you do so I'd be happy to link to your version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In Ruby 1.9.2 and later, the current directory has been removed from the
LOAD_PATH, due to security reasons. This causes an error when running make. The
solution is to prefix the module name with ./ to force it to be loaded from the
current directory.