ruby / ruby/rubygems

gem install ignores git sources in Gemfile

Open
#2,998 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug report
Dominant language
Ruby
Stars
4k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
81

Description

I'm having a problem or would like to suggest a feature.

My current problem is gem install ignores git sources in Gemfile

This issue is related to:

  • Network problems
  • Installing a library
  • Publishing a library
  • The command line gem
  • Other

Here are my current environment details:

$ gem env version
3.0.6

Gemfile:

gem 'rspec', github: 'rspec'

gem i -g installs rspec but the latest version available on rubygems.org, not the one on github.

gem i -g output:

Fetching rspec-support-3.9.0.gem
Fetching rspec-core-3.9.0.gem
Fetching rspec-mocks-3.9.0.gem
Fetching rspec-expectations-3.9.0.gem
Fetching rspec-3.9.0.gem
Installing rspec-support (3.9.0)
Installing rspec-core (3.9.0)
Using diff-lcs (1.3)
Installing rspec-expectations (3.9.0)
Installing rspec-mocks (3.9.0)
Installing rspec (3.9.0)

At the moment version in the repository is 3.10.0.pre.

I will abide by the code of conduct.

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

Reproduce the behavior with the shown Gemfile entry and the gem i -g command, comparing the installed version with the repository version linked in lib/rspec/version.rb. Trace how gem install handles the Gemfile's GitHub source; done means the command installs the requested Git source rather than the latest RubyGems release.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, ruby
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.