Rubygems dependency bug?

J

Jamis Buck

I'm building a gem that has a dependency on net-ssh. So, in the
gemspec, I do:

s.add_dependency 'net-ssh', '>= 1.0.2'

The gem builds fine. However, when I install it, it does not try to
install the dependencies, and installs just fine even if the
dependencies are not met.

I have verified that I do not have the net-ssh gem installed.

I have also done 'gem dependency' on the new package I just
installed, and it verifies that net-ssh is a dependency:

Requires
net-ssh (>= 1.0.2)

I am using gems 0.8.10.

Am I doing something wrong? Or is this a bug?

- Jamis
 
J

Jim Weirich

I'm building a gem that has a dependency on net-ssh. So, in the
gemspec, I do:

s.add_dependency 'net-ssh', '>= 1.0.2'

The gem builds fine. However, when I install it, it does not try to
install the dependencies, and installs just fine even if the
dependencies are not met.

I have verified that I do not have the net-ssh gem installed.

I have also done 'gem dependency' on the new package I just
installed, and it verifies that net-ssh is a dependency:

Requires
net-ssh (>= 1.0.2)

I am using gems 0.8.10.

Am I doing something wrong? Or is this a bug?

Are you doing a local install? Dependencies are not checked for local
installs. (To be addressed in version 0.9.xx).
 
J

Jamis Buck

Are you doing a local install? Dependencies are not checked for local
installs. (To be addressed in version 0.9.xx).

Bingo! Okay, that's the issue, then. Thanks for clearing it up, Jim.

- Jamis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top