Skip to content

Commit e4d3953

Browse files
committed
Work around invalid path problem on Windows
``` ERROR: Invalid path in C:/_bzl/minshlu6/external/rules_nixpkgs_core~/.bazelignore: java.nio.file.InvalidPathException: Illegal char <*> at index 6: bazel-* ```
1 parent 9492d6a commit e4d3953

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

haskell/repositories.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def rules_haskell_dependencies():
108108
strip_prefix = strip_prefix + "/core",
109109
urls = [rules_nixpkgs_url],
110110
sha256 = _rules_nixpkgs_sha256,
111+
# work around invalid path on Windows
112+
patch_cmds_win = ["del /f /q .bazelignore"],
111113
)
112114

113115
for toolchain in ["cc", "java", "python", "go", "rust", "posix", "nodejs"]:
@@ -116,6 +118,8 @@ def rules_haskell_dependencies():
116118
strip_prefix = strip_prefix + "/toolchains/" + toolchain,
117119
urls = [rules_nixpkgs_url],
118120
sha256 = _rules_nixpkgs_sha256,
121+
# work around invalid path on Windows
122+
patch_cmds_win = ["del /f /q .bazelignore"],
119123
)
120124

121125
maybe(

0 commit comments

Comments
 (0)