buchgr / bazel-remote

A remote cache for Bazel
https://bazel.build
Apache License 2.0
607 stars 156 forks source link

Does bazel-remote work with --experimental_enable_bzlmod #766

Open printharsh opened 3 months ago

printharsh commented 3 months ago

We have bzlmod enabled, and are trying to remote cache.

For testing I'm running the bazel remote cache server locally and trying to get it to hit by bazel cleaning and building. bazel build --remote_cache=http://localhost:8080 --remote_upload_local_results=true //target

From the docker container that's running for bazel-remote, it never gets called and the stats show nothing either.

mostynb commented 3 months ago

That looks like it should work. You can test that the docker container is reachable by doing something like wget -q -O - http://localhost:8080/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (that will try to fetch the empty blob and print it to the screen). If that works, you should see a corresponding log line from bazel-remote.

Does bazel log anything related to the cache not being reachable?