You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally, this involves path manipulation via @actions/core or possibly echo script statements.
There are three items affected by the following:
Does the runner correctly select the first bash.exe in Path for the bash shell on Windows?
Do scripts in steps have the correct Path?
Is the Path string reported in the log correct?
In ruby/setup-ruby, we'd prefer to remove the existing Path entries for the default toolcache Ruby installation. We're also adding path entries for MSYS2, which changes the bash shell from Git to MSYS2, and the path entries needed to enable the selected Ruby build.
So, because we're removing items, we're using core.exportVariable('Path', cleanPath). We tried also placing the path
additions in the cleanPath string. With this method, 1 failed, and 2 & 3 were correct.
An example of this is shown in: https://github.com/MSP-Greg/ruby-setup-ruby/runs/839254015, note the ' bash test_ruby.rb' step's log (the bash shell choosen and the Path string).
So, with that not working, we then used one call to core.exportVariable('Path', cleanPath) with only items removed in cleanPath. Then, we used core.addPath(newPathEntries) for the additions. With this method, 1 & 2 were correct, but 3 failed. As example of this is: https://github.com/MSP-Greg/ruby-setup-ruby/runs/839265335
Since I've only tested this via js code in a custom action, it's difficult to show examples of the issue. I can see if I can repo it using echo statements if that would be helpful.
The text was updated successfully, but these errors were encountered:
Are you still seeing this issue? It has been a long time since it was reported, sorry for that, and I can see that the PR has been merged. Can you please tell me if you are still seeing this issue?
Describe the bug
Generally, this involves path manipulation via @actions/core or possibly
echo
script statements.There are three items affected by the following:
In ruby/setup-ruby, we'd prefer to remove the existing Path entries for the default toolcache Ruby installation. We're also adding path entries for MSYS2, which changes the bash shell from Git to MSYS2, and the path entries needed to enable the selected Ruby build.
So, because we're removing items, we're using
core.exportVariable('Path', cleanPath)
. We tried also placing the pathadditions in the
cleanPath
string. With this method, 1 failed, and 2 & 3 were correct.An example of this is shown in:
https://github.com/MSP-Greg/ruby-setup-ruby/runs/839254015, note the ' bash test_ruby.rb' step's log (the bash shell choosen and the Path string).
So, with that not working, we then used one call to
core.exportVariable('Path', cleanPath)
with only items removed in cleanPath. Then, we usedcore.addPath(newPathEntries)
for the additions. With this method, 1 & 2 were correct, but 3 failed. As example of this is:https://github.com/MSP-Greg/ruby-setup-ruby/runs/839265335
Since I've only tested this via js code in a custom action, it's difficult to show examples of the issue. I can see if I can repo it using
echo
statements if that would be helpful.The text was updated successfully, but these errors were encountered: