bazelbuild / rules_closure

Closure rules for Bazel
https://developers.google.com/closure
Apache License 2.0
152 stars 114 forks source link

Fails to load on Windows #529

Open eustas opened 3 years ago

eustas commented 3 years ago

Tried to run bazel with io_bazel_rules_closure in GitHub Actions Windows-2019 environment and got

ERROR: C:/users/runneradmin/_bazel_runneradmin/h7l7fnou/external/io_bazel_rules_closure/third_party/png/BUILD:7:12: Executing genrule @io_bazel_rules_closure//third_party/png:libpng_k8 [for host] failed: (Exit 2): bash.exe failed: error executing command C:/Program Files/Git/usr/bin/bash.exe -c ... (remaining 1 argument(s) skipped)
tar: ./usr/lib/x86_64-linux-gnu/libpng12.so.0: Cannot create symlink to '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory

I suspect that third_party/png:libpng_k8 does not consider it is not in Linux environment.

eustas commented 3 years ago

It seems that libpng library is required by phantomjs. However, distribution page (https://phantomjs.org/download) claims that binary is "static" and does not require dependencies (except for linux build).

Anyways, windows binary have to be loaded first. Will report on further investigation when I have spare cycles.