copiousfreetime / stickler

a tool to organize and maintain an internal gem distribution server
MIT License
143 stars 29 forks source link

when mirroring or pushing a gem, have stickler pull in the dependencies automatically for mirroring #14

Open copiousfreetime opened 13 years ago

elgalu commented 10 years ago

This feature request still open means that even with the mirrored gems on stickler a bundle install or bundle update will still hit rubygems.org dependencies api endpoint? i.e. https://bundler.rubygems.org/api/v1/dependencies.json?gems=cucumber,rake

copiousfreetime commented 10 years ago

@elgalu The idea for this feature is when you stickler push or stickler mirror that the stickler-server while it is storing the gem you are pushing or mirroring, would also mirror the dependencies of the pushed or mirrored gem.

I am considering canceling this feature as I have implemented the ability to feed a Gemfile.lock to the stickler mirror command. This allows the already calculated dependencies from bundler to be fed to stickler-server directly.

Stickler does not affect how bundle update or bundle install works. If, in your Gemfile, you have source http://mygemserver.example.org/ and you have a stickler-server running at that location, then bundler will be talking to a stickler server instead of rubygems.org.

Currently stickler has not implemented the bundler api, this will be covered under feature #23 when it is implemented. I may make the bundler api implementation a separate issue for clarity.

I hope this clarifies things for you. If not, I'm happy to help understanding the use case you are attempting to solve.

-jeremy

elgalu commented 10 years ago

Great Jeremy, thanks for taking the time to respond!