Closed zlw523190330 closed 1 year ago
Hei! Sorry for the delay.
This was a permissions issue that was making Bundler fail to remove the previous installation of gems before reinstalling.
It was a bug though that we were showing the bug report template here, but this has been fixed in recent Bundler versions and we should now be raising a better actionable error without a bug report template.
So I'm going to close this since it's also quite old. If you're still having issues, let us know and we'll hopefully be more responsive next time!
Regards!
i'm seeing the below error message running "brew test lammps -v"
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/bin/bundle install /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin22/rbconfig.rb:21: warning: Insecure world writable dir /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0 in PATH, mode 040777 Fetching gem metadata from https://rubygems.org/....... Using minitest 5.18.0 Using ast 2.4.2 Installing zeitwerk 2.6.7 Using msgpack 1.6.1 Using bundler 2.3.26 Using byebug 11.1.3 Using connection_pool 2.3.0 Installing bindata 2.4.15 Using diff-lcs 1.5.0 Using docile 1.4.0 Using unf_ext 0.0.8.2 Using regexp_parser 2.7.0 Using hana 1.3.7 Using hpricot 0.8.6 Using json 2.6.3 Using uri_template 0.7.0 Using mime-types-data 3.2023.0218.1 Installing public_suffix 5.0.1 Using net-http-digest_auth 1.4.1 Using racc 1.6.2 Installing did_you_mean 1.6.3 Using webrobots 0.1.2 Using mustache 1.1.1 Using parallel 1.22.1 Installing rubyntlm 0.6.3 It is a security vulnerability to allow your home directory to be world-writable, and bundler cannot continue. You should probably consider fixing this issue by running
chmod o-w ~
on *nix. Please refer to https://ruby-doc.org/stdlib-3.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure for details. Installing plist 3.7.0 Using rainbow 3.1.1 Using rdiscount 2.2.7 Using rexml 3.2.5 Using rspec-support 3.12.0 Installing webrick 1.8.1 Installing ruby-progressbar 1.13.0 Installing rack 3.0.4.2 Using unicode-display_width 2.4.2 Installing sorbet-runtime 0.5.10461 Installing concurrent-ruby 1.2.2 Using simplecov-html 0.12.3 Installing simplecov_json_formatter 0.1.4 Installing ruby-macho 3.0.0 Installing warning 1.3.0 Using parser 3.2.1.1 --- ERROR REPORT TEMPLATE -------------------------------------------------------Environment
Bundler Build Metadata
Bundler settings
Gemfile
../../opt/homebrew/Library/Homebrew/Gemfile
../../opt/homebrew/Library/Homebrew/Gemfile.lock
--- TEMPLATE END ----------------------------------------------------------------
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
First, try this link to see if there are any existing issue reports for this error: https://github.com/rubygems/rubygems/search?q=parent+directory+is+world+writable%2C+Bundler++FileUtils%23remove_entry_secure+does+not+work%3B+abort++%22%2Fopt%2Fhomebrew%2FLibrary%2FHomebrew%2Fvendor%2Fbundle%2Fruby%2F2.6.0%2Fgems%2Fzeitwerk-2.6.7%22+%28parent+directory+mode+40777%29&type=Issues
If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there. Error: failed to run
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/bin/bundle install
!