在Windows上使用Bazel 0.21构建angular-bazel-example时,权限被拒绝

时间:2019-01-10 15:53:51

标签: bazel

当我尝试在angular-bazel-example项目中执行bazel run //src:devserver时,始终看到错误。

我正在使用Windows10。我无法找到任何可解决此问题的方法。我认为问题可能与patch或路径太长有关。但是,我已经使用MSYS2安装了patch,已经使用选项--output_user_root更改了输出目录,并且尝试使用具有管理员权限的DOS提示符。似乎没有任何帮助。

错误消息

INFO: SHA256 (https://codeload.github.com/golang/tools/zip/3e7aa9e59977626dc60433e9aeadf1bb63d28295) = 2384fa91351a7414b643c5230422ce45f5aa2be8a82727609afd4e64e6973a30
ERROR: Analysis of target '//src:devserver' failed; build aborted: no such package '@org_golang_x_tools//go/gcexportdata': Traceback (most recent call last):
    File "C:/temp/vvsv3266/external/bazel_tools/tools/build_defs/repo/http.bzl", line 55
            patch(ctx)
    File "C:/temp/vvsv3266/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 82, in patch
            fail(("Error applying patch %s:\n%s%s...)))
Error applying patch @io_bazel_rules_go//third_party:org_golang_x_tools-gazelle.patch:
java.io.IOException: ERROR: src/main/native/windows/processes-jni.cc(383): CreateProcessW("C:\msys64\usr\bin" -c "patch '-p1' < C:/temp/vvsv3266/external/io_bazel_rules_go/third_party/org_golang_x_tools-gazelle.patch"): Access is denied.
INFO: Elapsed time: 691.367s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (484 packages loaded, 20777 targets configured)
FAILED: Build did NOT complete successfully (484 packages loaded, 20777 targets configured)
Fetching @ngdeps; fetching 245s
Fetching @org_golang_x_tools; Patching repository 15s

有人可以告诉我如何补救吗?

0 个答案:

没有答案