ruby / ruby/rubygems

Gemspec files ignored if installing from `path` or `git`

Open
#3,194 9 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bundler status: triage
Dominant language
Ruby
Stars
4k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
81

Description

When a gem is specified via path or git in the Gemfile, bundler will ignore the files field of the gemspec.

This results in certain files being loadable when they shouldn't be.

Contributor guide

Open the contributing guide

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 issue with a Gemfile dependency specified via path or git and a gemspec containing a files field. Trace how Bundler handles that gemspec and verify that files excluded by the field are no longer loadable.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.