github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/build/info.proto (about)

     1  // Copyright 2016 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  syntax = "proto2";
    12  package cockroach.build;
    13  option go_package = "build";
    14  
    15  import "gogoproto/gogo.proto";
    16  
    17  // Info describes build information for this CockroachDB binary.
    18  message Info {
    19    optional string go_version = 1 [(gogoproto.nullable) = false];
    20    optional string tag = 2 [(gogoproto.nullable) = false];
    21    optional string time = 3 [(gogoproto.nullable) = false];
    22    optional string revision = 4 [(gogoproto.nullable) = false];
    23    optional string cgo_compiler = 5 [(gogoproto.nullable) = false];
    24    optional string cgo_target_triple = 10 [(gogoproto.nullable) = false];
    25    optional string platform = 6 [(gogoproto.nullable) = false];
    26    optional string distribution = 7 [(gogoproto.nullable) = false];
    27    optional string type = 8 [(gogoproto.nullable) = false];
    28    optional string channel = 9 [(gogoproto.nullable) = false];
    29    optional string env_channel = 11 [(gogoproto.nullable) = false];
    30  
    31    // dependencies exists to allow tests that run against old clusters
    32    // to unmarshal JSON containing this field. The tag is unimportant,
    33    // but the field name must remain unchanged.
    34    //
    35    // alternatively, we could set jsonpb.Unmarshaler.AllowUnknownFields
    36    // to true in httputil.doJSONRequest, but that comes at the expense
    37    // of run-time type checking, which is nice to have.
    38    optional string dependencies = 10000;
    39  }