Skip to content

Commit 20cc318

Browse files
committed
Try to fix symlink issue for rules_ruby
1 parent 671dd9b commit 20cc318

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/bazel.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ jobs:
199199
crates: rust/Cargo.Bazel.lock
200200
repository-cache: true
201201
bazelrc: common --color=yes
202+
# Workaround for rules_ruby MSYS2 "infinite symlink expansion detected" on Windows
203+
- name: Remove MSYS2 recursive symlink
204+
if: inputs.os == 'windows'
205+
shell: bash
206+
run: |
207+
[ -L "D:/b/external/rules_ruby++ruby+ruby/dist/msys64/etc/mtab-" ] && \
208+
rm "D:/b/external/rules_ruby++ruby+ruby/dist/msys64/etc/mtab-"
202209
- name: Setup curl for Ubuntu
203210
if: inputs.os == 'ubuntu'
204211
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev

0 commit comments

Comments
 (0)