Skip to content

Commit

Permalink
[GR-19691] Improve warning message when the GEM_HOME/GEM_PATH are mis…
Browse files Browse the repository at this point in the history
…configured

PullRequest: truffleruby/2164
  • Loading branch information
eregon committed Nov 16, 2020
2 parents 65215e7 + 06b5fbd commit 001f1dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/ruby/truffleruby/core/truffle/gem_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ def self.upgraded_default_gem?(feature)
def self.verify_gem_paths
bad_dirs = bad_gem_dirs(gem_paths)
unless bad_dirs.empty?
warn "[ruby] WARNING gem paths: #{bad_dirs.join ', '} are not marked as installed by TruffleRuby " +
'(they could belong to another Ruby implementation and break unexpectedly)'
warn "[ruby] WARNING gem paths: #{bad_dirs.join ', '} are not marked as installed by TruffleRuby. " +
'They might belong to another Ruby implementation and break unexpectedly. ' +
'Configure your Ruby manager to use TruffleRuby, or `unset GEM_HOME GEM_PATH`. ' +
'See https://github.com/oracle/truffleruby/blob/master/doc/user/ruby-managers.md'
end
bad_dirs
end
Expand Down
1 change: 1 addition & 0 deletions tool/jt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2311,6 +2311,7 @@ def check_documentation_urls
https://github.com/oracle/truffleruby/blob/master/doc/user/installing-libssl.md
https://github.com/oracle/truffleruby/blob/master/doc/user/installing-llvm.md
https://github.com/oracle/truffleruby/blob/master/doc/user/installing-zlib.md
https://github.com/oracle/truffleruby/blob/master/doc/user/ruby-managers.md
]

known_hardcoded_urls.each do |url|
Expand Down

0 comments on commit 001f1dc

Please sign in to comment.