GithubHelp home page GithubHelp logo

Comments (6)

elskwid avatar elskwid commented on May 22, 2024

@rsutphin, thank you for opening this issue!

During our pairing session, @phlipper and I spent most of the day looking through this issue as we have projects that are not resolving gem dependencies correctly.

We see the same behavior as you are with the newer versions of a gem having missing dependencies. I used your script to check against our gem thincloud-postmark:

# ruby list_gem_deps.rb thincloud-postmark

[{:name=>"thincloud-postmark",
  :number=>"0.4.0",
  :platform=>"ruby",
  :dependencies=>[]},
 {:name=>"thincloud-postmark",
  :number=>"0.3.2",
  :platform=>"ruby",
  :dependencies=>[]},
 {:name=>"thincloud-postmark",
  :number=>"0.3.1",
  :platform=>"ruby",
  :dependencies=>[]},
 {:name=>"thincloud-postmark",
  :number=>"0.3.0",
  :platform=>"ruby",
  :dependencies=>[]},
 {:name=>"thincloud-postmark",
  :number=>"0.2.0",
  :platform=>"ruby",
  :dependencies=>[["postmark-rails", "~> 0.4.1"]]},
 {:name=>"thincloud-postmark",
  :number=>"0.1.1",
  :platform=>"ruby",
  :dependencies=>[["postmark-rails", "~> 0.4.1"]]},
 {:name=>"thincloud-postmark",
  :number=>"0.1.0",
  :platform=>"ruby",
  :dependencies=>[]}]

As we were testing we wanted to see what would happen with a newly created gem. We used bundle gem command for the initial structure and then pushed with both rake release and gem push. We also used different methods of requiring dependencies (add_dependency vs add_runtime_depency):

# ruby list_gem_deps.rb elskwid-gem-test

[{:name=>"elskwid-gem-test",
  :number=>"0.0.3",
  :platform=>"ruby",
  :dependencies=>[]},
 {:name=>"elskwid-gem-test",
  :number=>"0.0.2",
  :platform=>"ruby",
  :dependencies=>[]},
 {:name=>"elskwid-gem-test",
  :number=>"0.0.1",
  :platform=>"ruby",
  :dependencies=>[]}]

Issuing bundle install will not find dependencies for these gems since it relies on this endpoint.

Bottom line, it didn't matter what the dependencies were or how we required them in our gemspec.

One final note: When we run bundler with the --verbose flag we can see the gem names coming back correctly during the fetch metadata stage but they are not included in the install list.

from bundler-api.

elskwid avatar elskwid commented on May 22, 2024

⬆️

from bundler-api.

phlipper avatar phlipper commented on May 22, 2024

🎉 👍

from bundler-api.

TigerWolf avatar TigerWolf commented on May 22, 2024

rubygems/bundler#2185 (comment)

Is there a way to update the database so that the older gems and dependencies are updated so that all of the gems work correctly? I saw this mentioned in issue #18

from bundler-api.

hone avatar hone commented on May 22, 2024

A fix has been deployed and the migration has been run. Please let me know if you're still running into issues.

from bundler-api.

rsutphin avatar rsutphin commented on May 22, 2024

Thanks @elskwid, @hone, and all. I have verified that the fixed data has resolved my original issue.

from bundler-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.