Skip to content

Protobuf message definitions for PiE software

Notifications You must be signed in to change notification settings

pioneers/protos

Repository files navigation

protos

Protobuf message definitions for PiE software. Should be updated by Dawn, Shepherd, and Runtime and imported as a submodule into all three project repositories so that the protobuf definitions don't become out of sync with each other.

See are some tutorials on git submodules:

Usage

When first using submodule, run the following commands on the branch with the submodule set up:

  • git submodule init
  • git submodule update

When cloning the entire repo for the first time, you can do the same thing.

When this protos repo (which is a submodule in other repos) is updated, then all people in projects that include this submodule must run git submodule update --remote from the root directory of the project repo in order to obtain the latest changes. (Technically you just need to not run it in the submodule directory).

Finally, you should only modify the files in this submodule by directly pushing to this repo. (i.e. do not modify the files from projects that include this submodule).

Setting up

Adding this submodule to a repo should only be done by one person. The rest should have to only follow the steps in the "Usage" section.

To add this submodule to a project, first checkout a new branch from master on that project. Then do:

  • git submodule add -f https://github.com/pioneers/protos.git <path/to/protos/folder>

This command creates a file in the root directory of the repo called .gitmodules that needs to then be pushed to the repo (should not be ignored). Make sure that any old protos/ folder or protobuf definitions are removed before doing this.

About

Protobuf message definitions for PiE software

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •