-
Notifications
You must be signed in to change notification settings - Fork 335
Description
gem and bundler are explicitly configured to install gem binaries in /usr/local/bundle/bin. The PATH is modified to include it so the binaries can be used.
Instead, I'd like to propose installing gem binaries in /usr/local/bin which is already in the PATH, and already a standard component of PATHs everywhere (unlike /usr/local/bundle/bin which I can't find any other reference to). https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard#cite_note-8
This particularly helps me, because the Jenkins docker plugin overrides PATH with it's own default when it runs commands in containers; its own default of course includes /usr/local/bin but not /usr/local/bundle/bin.
An obvious objection to this is that the Jenkins docker plugin shouldn't override the PATH, which is fair, but I think that avoids the point here which is that these container images use a non-standard PATH which just invites trouble.
Is there a particular reason to use /usr/local/bundle/bin ?