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

It resolves the cannot load such file -- ./lib/yajl-ruby/version issue #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vasu1105
Copy link

@Vasu1105 Vasu1105 commented Sep 8, 2022

I am getting this error while adding gem to vendor set when it tries to load the gem specifications.

Invalid gemspec in [/Users/vjagdale/.inspec/gems/3.0.0/gems/yajl-ruby-1.4.3/yajl-ruby.gemspec]: cannot load such file -- ./lib/yajl/version

Adding the below lines to gemspec file resolves the issue.

ib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'yajl/version'

…version issue

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
@Vasu1105 Vasu1105 changed the title It resolves the cannot load such file -- ./lib/recursive_open_struct/version issue It resolves the cannot load such file -- ./lib/yajl-ruby/version issue Sep 8, 2022
@Vasu1105
Copy link
Author

Any updates on this?

@Vasu1105
Copy link
Author

@brianmario Any updates on this?

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

1 participant