File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
github-actions/bazel/setup Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import fs from 'fs';
77// in the bazelrc file need to be escaled as otherwise those would escape
88// followed characters that weren't supposed to be escaped.
99const cachePath = path . join ( os . homedir ( ) , '.cache/bazel_repo_cache' ) ;
10- const escapedCachePath = cachePath . replace ( / \\ / g, '\\\\ ' ) ;
10+ const escapedCachePath = cachePath . replace ( / \\ / g, '/ ' ) ;
1111
1212const bazelRcContent = `
1313# Print all the options that apply to the build.
@@ -16,7 +16,8 @@ const bazelRcContent = `
1616build --announce_rc
1717
1818# Avoids re-downloading NodeJS/browsers all the time.
19- build --repository_cache=${ escapedCachePath }
19+ # Replace path to make it compatable with WSL
20+ build --repository_cache=${ escapedCachePath . replace ( / c : \/ / i, '/mnt/c/' ) }
2021
2122# More details on failures
2223build --verbose_failures=true
You can’t perform that action at this time.
0 commit comments