github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/swarmkit/api/README.md (about)

     1  ### Notice
     2  
     3  Do not change .pb.go files directly. You need to change the corresponding .proto files and run the following command to regenerate the .pb.go files.
     4  ```
     5  $ make generate
     6  ```
     7  
     8  Click [here](https://github.com/google/protobuf) for more information about protobuf.
     9  
    10  The `api.pb.txt` file contains merged descriptors of all defined services and messages.
    11  Definitions present here are considered frozen after the release.
    12  
    13  At release time, the current `api.pb.txt` file will be moved into place to
    14  freeze the API changes for the minor version. For example, when 1.0.0 is
    15  released, `api.pb.txt` should be moved to `1.0.txt`. Notice that we leave off
    16  the patch number, since the API will be completely locked down for a given
    17  patch series.
    18  
    19  We may find that by default, protobuf descriptors are too noisy to lock down
    20  API changes. In that case, we may filter out certain fields in the descriptors,
    21  possibly regenerating for old versions.
    22  
    23  This process is similar to the [process used to ensure backwards compatibility
    24  in Go](https://github.com/golang/go/tree/master/api).