Skip to content

Commit

Permalink
GetCapabilities: set HighApiVersion to 2.3
Browse files Browse the repository at this point in the history
The latest version of Remote APIs is v2.3.

Let's make sure that we follow the specification and avoid future v2.4
or v3.0 clients to try using our API before we support it.
  • Loading branch information
sluongng committed May 30, 2023
1 parent 0b949a4 commit 5fe313a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ func NewCapabilitiesServer(env environment.Env, supportCAS, supportRemoteExec, s

func (s *CapabilitiesServer) GetCapabilities(ctx context.Context, req *repb.GetCapabilitiesRequest) (*repb.ServerCapabilities, error) {
c := repb.ServerCapabilities{
// Support bazel 2.0 -> 99.9
// Support bazel 2.0 -> 2.3
LowApiVersion: &smpb.SemVer{Major: int32(2)},
HighApiVersion: &smpb.SemVer{Major: int32(99), Minor: int32(9)},
HighApiVersion: &smpb.SemVer{Major: int32(2), Minor: int32(3)},
}
var compressors []repb.Compressor_Value
if s.supportZstd {
Expand Down

0 comments on commit 5fe313a

Please sign in to comment.