Skip to content

Conversation

nevir
Copy link
Contributor

@nevir nevir commented Apr 18, 2013

sudo gem install is harmful in a lot of setups.

  • You end up writing root-owned files to userland dirs for any sort of managed Ruby environment (chruby, rvm, rbenv, etc).
  • Related to above, it's a real pain to blow away the gem, or a ruby vm when you've got mixed ownership over the gems directory.
  • Gems can run arbitrary code on the user's machine during install; not great practice to promote that as the default behavior.
  • Depending on the user's setup, sudo may be dropping env vars such as GEM_HOME, placing gems into undesired locations.

etc.

sqrrrl added a commit that referenced this pull request Apr 21, 2013
Consider dropping sudo from "sudo gem install" in example
@sqrrrl sqrrrl merged commit cc69b49 into googleapis:master Apr 21, 2013
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

Successfully merging this pull request may close these issues.

2 participants