libgit2 / libgit2/rugged

Unsigned error while using gem

Open
#832 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2.3k
Forks
293
PR merge metrics
No merged PRs in 30d

Description

Seems when using the gem on macOS Catalina, it resolved the following error.

/opt/chef/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/rugged-0.28.4.1/lib/rugged/rugged.bundle, 9): no suitable image found.  Did find: (LoadError)
	/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/rugged-0.28.4.1/lib/rugged/rugged.bundle: code signature in (/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/rugged-0.28.4.1/lib/rugged/rugged.bundle) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. - /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/rugged-0.28.4.1/lib/rugged/rugged.bundle

This is on a fresh install of macOS 10.15.3 and the product using the gem is using Ruby 2.6.0.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the LoadError on macOS 10.15.3 with Ruby 2.6.0 and the rugged gem. Inspect the loading of lib/rugged/rugged.bundle and the reported RubyGems require path, then verify that the gem loads without the unsigned-library error on the affected environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, ruby
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.