Cache hit errors while building envoy proxy in windows #16164
Labels
area-Windows
Windows-specific issues and feature requests
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-CPP
Issues for C++ rules
type: bug
Description of the bug:
Cache hits (race conditions) instead of downloading the corresponding file while building Envoy proxy
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
In the windows command shell
Configure, build and/or install the [Envoy dependencies]
Configure Visual Studio 2019
Build Tools for Visual Studio 2019: For building with MSVC, you must install at least the VC++ workload. You may alternately install the entire Visual Studio 2019 and use the Build Tools installed in that package. NOTE: ensure that the link.exe that resolves on your PATH is from VC++
Install bazelisk in the PATH using the bazel.exe executable name as described above in the first section.
Setup Envoy Proxy
git clone git@github.com:envoyproxy/envoy.git
in C:When building Envoy, Bazel creates very long path names. One way to work around these excessive path lengths is to change the output base directory for bazel to a very short root path.
An example Bazel configuration to help with this is to use C:_eb as the bazel base path. This and other preferences should be set up by placing the following bazelrc configuration line in the individual user's %USERPROFILE%.bazelrc file (rather than including it on every bazel command line):
Python
Specifically, the Windows-native flavor distributed by python.org. The POSIX flavor available via MSYS2, the Windows Store flavor and other distributions will not work. Add a symlink for python3.exe pointing to the installed python.exe for Envoy scripts and Bazel rules which follow POSIX python conventions. Add pip.exe to the PATH and install the wheel package.
Build envoy
Error:
Which operating system are you running Bazel on?
Windows 11
What is the output of
bazel info release
?release 6.0.0-pre.20220706.4
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
Reference: https://docs.bazel.build/versions/main/windows.html
https://github.com/envoyproxy/envoy/blob/main/bazel/README.md
https://www.envoyproxy.io/docs/envoy/latest/start/building#windows-target-requirements
https://github.com/envoyproxy/envoy/blob/c3418f14daa6809ab47ce4c8d21ceceabbc7d292/bazel/README.md
envoyproxy/envoy#13194
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: