ruby - 'bundle show' results in different paths depending on user, but on same system and Gemfile.lock -


i have multiple users using cli app on same system. in order use unreleased patch, gemfile points specific commit on github of grit gem. app has gemfile.lock. users have same $gem_home , $gem_path locations set.

now, 1 user 'cd app; bundle show grit' shows path '$gem_home/bundler/gems/grit-35b71d599549' (which exists cuz ran bundle install). odd-ball, 'cd app; bundle show grit' shows path '/nfs/home_dirs/odd-ball/.bundler/ruby/2.0.0/grit-35b71d599549' (which doesn't exist). bundler::giterror raised user.

i have looked $bundle_* environment variables , ~/.bundle* configuration. i've verified has permissions $gem_home/bundler/gems.

what other reasons account difference?

thanks.

i dug in , found came down file permissions individual user. specifically, in bundler.requires_sudo?:

def requires_sudo?   ...     # if directory not writable, need sudo     dirs = [path, bin_dir] | dir[path.join('*')]     sudo_needed = dirs.find{|d| !file.writable?(d) }   ... end 

this user not in group allowed write "#{path}/lib". , i'm assuming when bundler.requires_sudo? returns true, bundler divert install_path users home dir.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -