diff options
| author | Jeff Carr <[email protected]> | 2024-11-26 05:34:26 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-26 05:34:26 -0600 |
| commit | 44caec2e7fc59697ef01835aacf8a03171a42bea (patch) | |
| tree | 33bbb0ff3200d5a49eb6aa407ea1bd5f0fa828bd /godep.proto | |
| parent | f7bf89148d1c66505dc102f0e27f62371f5004f4 (diff) | |
take a stab at a protobuf for the go deps
Diffstat (limited to 'godep.proto')
| -rw-r--r-- | godep.proto | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/godep.proto b/godep.proto new file mode 100644 index 0000000..3b4333b --- /dev/null +++ b/godep.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +// store go dependancies + +package gitpb; + +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +message GoDep { + string hash = 1; // md5sum/hash value from the go.sum file + google.protobuf.Timestamp ctime = 2; // get the go date from 'go list' ? + string version = 3; // v1.2.2 + string goPath = 4; // "go.wit.com/lib/foo" + string goVersion = 5; // version of golang the developer used to make this package version +} + +message GoDeps { + string uuid = 1; // I guess why not just have this on each file + string version = 2; // maybe can be used for protobuf schema change violations + repeated GoDep GoDeps = 3; +} |
