Skip to content

Commit

Permalink
Workaround build name clash and copy build instead of symlinking
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Apr 15, 2024
1 parent dc120e7 commit 23ca7a1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tool/jt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2533,13 +2533,8 @@ def sforceimports

dest = "#{TRUFFLERUBY_DIR}/mxbuild/#{name}"
FileUtils.rm_rf dest
if @ruby_name != @mx_env
# if `--name NAME` is passed, we want to copy so we don't end up with two symlinks
# to the same directory for the same --env but different names
FileUtils.cp_r(build_dir, dest)
else
File.symlink(build_dir, dest)
end
# NOTE: revert the changes and create a symlink if possible when [GR-53433] is resolved
FileUtils.cp_r(build_dir, dest)

# Symlink builds into version manager
rbenv_root = ENV['RBENV_ROOT']
Expand Down

0 comments on commit 23ca7a1

Please sign in to comment.