Open teto opened 3 years ago
would like to see which bazel-remote is available in PATH (
bazel-remote --version
)
Hmm, the version string isn't currently baked into the binary. I'll have to investigate to see what's possible, and to figure out what could be done for builds that aren't tagged releases.
and also wondered if it was possible to get the version of a running bazel-remote ? to automaticallly kill it and restart it when detecting a bazel-remote version change.
The status URL contains the git commit hash the binary was built from:
$ curl http://localhost:8080/status
{
"CurrSize": 414081715503,
"ReservedSize": 876400,
"MaxSize": 8589934592000,
"NumFiles": 621413,
"ServerTime": 1588329927,
"GitCommit": "940d540d3a7f17939c3df0038530122eabef2f19",
"NumGoroutines": 12
}
And the git commit hash is logged on startup, even when doing ./bazel-remote --help
IIRC- this might be the best option that's available right now.
would like to see which bazel-remote is available in PATH (
bazel-remote --version
) and also wondered if it was possible to get the version of a running bazel-remote ? to automaticallly kill it and restart it when detecting a bazel-remote version change.