Automated rollback of commit c2b332b45e6ea41a14ecbd3c5f30782bcdeec301.
Automated rollback of commit c2b332b45e6ea41a14ecbd3c5f30782bcdeec301.

*** Reason for rollback ***

Causes https://github.com/bazelbuild/bazel/issues/4847

*** Original change description ***

windows: replace custom JunctionResolver

There's a realpath(3)-like Windows API function
called GetFinalPathNameByHandle{A,W}.

This commit removes JunctionResolver, implements
RealPath using GetFinalPathNameByHandleW, and
replaces JunctionResolver usages with RealPath.

PiperOrigin-RevId: 189031288

twitter-forks/bazel,davidzchen/bazel,dslomov/bazel-windows,safarmer/bazel,dropbox/bazel,akira-baruah/bazel,ulfjack/bazel,katre/bazel,ulfjack/bazel,safarmer/bazel,aehlig/bazel,dslomov/bazel,cushon/bazel,twitter-forks/bazel,dropbox/bazel,perezd/bazel,dslomov/bazel,davidzchen/bazel,meteorcloudy/bazel,dslomov/bazel-windows,akira-baruah/bazel,bazelbuild/bazel,ulfjack/bazel,katre/bazel,perezd/bazel,ButterflyNetwork/bazel,dslomov/bazel-windows,katre/bazel,perezd/bazel,cushon/bazel,twitter-forks/bazel,dslomov/bazel,perezd/bazel,bazelbuild/bazel,dslomov/bazel,davidzchen/bazel,meteorcloudy/bazel,meteorcloudy/bazel,werkt/bazel,cushon/bazel,ButterflyNetwork/bazel,aehlig/bazel,cushon/bazel,perezd/bazel,werkt/bazel,meteorcloudy/bazel,meteorcloudy/bazel,dslomov/bazel,ulfjack/bazel,twitter-forks/bazel,davidzchen/bazel,dropbox/bazel,aehlig/bazel,dslomov/bazel,aehlig/bazel,ButterflyNetwork/bazel,werkt/bazel,katre/bazel,bazelbuild/bazel,dropbox/bazel,akira-baruah/bazel,aehlig/bazel,safarmer/bazel,ButterflyNetwork/bazel,davidzchen/bazel,davidzchen/bazel,perezd/bazel,katre/bazel,ulfjack/bazel,werkt/bazel,ulfjack/bazel,katre/bazel,safarmer/bazel,dslomov/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,twitter-forks/bazel,safarmer/bazel,perezd/bazel,akira-baruah/bazel,dropbox/bazel,safarmer/bazel,cushon/bazel,werkt/bazel,ButterflyNetwork/bazel,aehlig/bazel,bazelbuild/bazel,akira-baruah/bazel,davidzchen/bazel,dslomov/bazel-windows,twitter-forks/bazel,twitter-forks/bazel,cushon/bazel,meteorcloudy/bazel,ulfjack/bazel,werkt/bazel,bazelbuild/bazel,akira-baruah/bazel,aehlig/bazel,dropbox/bazel,meteorcloudy/bazel,dslomov/bazel-windows,dslomov/bazel-windows