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

Consider dropping sudo from "sudo gem install" in example #47

Merged
merged 1 commit into from
Apr 21, 2013

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