Windows: fix "corrupt installation" at new year
Windows: fix "corrupt installation" at new year

Bazel on Windows is now consistent with Bazel on
Unixes, by setting the mtimes of embedded binaries
to 10 years in the future.

Before this change, on Windows, Bazel used to set
these mtimes to CURRENT_YEAR + 10, January 1st.

This meant that if a user ran Bazel on 2017/12/29,
then on Unix Bazel set the mtimes to 2027/12/29
but on Windows it set them to 2027/01/01.

If the user then ran Bazel in the same workspace
on 2018/01/02, on Unixes it worked fine, but on
Windows it detected that the embedded binaries'
mtime is older than 2018/01/01, and reported a
"corrupt installation" error.

Fixes https://github.com/bazelbuild/bazel/issues/4378

Change-Id: I3457bdc360a62a279d1d08c9a69997929f2067dd

Closes #5385.

Change-Id: I3457bdc360a62a279d1d08c9a69997929f2067dd
PiperOrigin-RevId: 200395493

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