Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem is installed incomplete when RDoc fails. #135

Closed
voxik opened this issue Jul 20, 2011 · 2 comments
Closed

Gem is installed incomplete when RDoc fails. #135

voxik opened this issue Jul 20, 2011 · 2 comments
Assignees

Comments

@voxik
Copy link
Contributor

voxik commented Jul 20, 2011

Hello,

The commit [1] changes behavior of rubygems due to issue [2]. However, it results in installed gem without installed documentation. I consider this behavior broken. There are 3 possible solutions:

  1. Work in transaction and revert all changes done during installation prior the error.
  2. Keep working as previously, i.e. ignore the RDoc bug and continue the installation.
  3. Add commandline switch which can control the behavior, e.g. ignore errors.

You can compare the functionality using Ruby 1.8.7 with bundled rdoc, which has difficulties to pares documentation of builder 2.1.2. Rubygems 1.3.7 'successfully' (i.e. return code 0) installed the gem while newer Rubygems fails, while the gem is installed anyway (return code 1).

[1] f379d5b
[2] http://rubyforge.org/tracker/index.php?func=detail&aid=28935&group_id=126&atid=575

@ghost ghost assigned drbrain Sep 1, 2011
@drbrain
Copy link
Member

drbrain commented Sep 2, 2011

We discussed the previous behavior and now consider it broken. Now RubyGems tells you if anything went wrong during the install process so you can double-check it.

If you're performing automated installation and are worried about unsuccessful installs meaning non-working gems you should use --no-rdoc --no-ri.

If you still need documentation you can use gem rdoc --all which will add missing documentation (--no-overwrite is the default).

@drbrain drbrain closed this as completed Sep 2, 2011
@voxik
Copy link
Contributor Author

voxik commented Sep 3, 2011

I have discovered this issue when trying to figure out what was causing build failure of Fedora builder package [1]. As you can see from the log [2], there is clearly stated:

Successfully installed builder-2.1.2
1 gem installed

so I am wondering why, at least, the message does not corresponds to the return code.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=716048
[2] https://bugzilla.redhat.com/attachment.cgi?id=508590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants