From 23ca7a1df062ded871ed934980427cc5add35124 Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Mon, 15 Apr 2024 16:14:46 +0300 Subject: [PATCH] Workaround build name clash and copy build instead of symlinking --- tool/jt.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tool/jt.rb b/tool/jt.rb index f22f39c4ac1f..1326a38f706b 100755 --- a/tool/jt.rb +++ b/tool/jt.rb @@ -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']