OLD | NEW |
1 // NOTE: this must be kept in sync with | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
2 // https://github.com/luci/luci-go/blob/master/client/cmd/kitchen/proto/package.
proto | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. |
| 4 |
| 5 // Recompile with libprotoc 2.5.0: |
| 6 // protoc -I recipe_engine recipe_engine/package.proto --python_out=recipe_engin
e |
| 7 |
3 syntax = "proto2"; | 8 syntax = "proto2"; |
4 | 9 |
5 package recipe_engine; | 10 package recipe_engine; |
6 | 11 |
7 message DepSpec { | 12 message DepSpec { |
8 optional string project_id = 1; | 13 optional string project_id = 1; |
9 optional string url = 2; | 14 optional string url = 2; |
10 optional string branch = 3; | 15 optional string branch = 3; |
11 optional string revision = 4; | 16 optional string revision = 4; |
12 | 17 |
13 // Treat a subtree of a repo as a whole repo unto itself. | 18 // Treat a subtree of a repo as a whole repo unto itself. |
14 optional string path_override = 5; | 19 optional string path_override = 5; |
| 20 |
| 21 enum RepoType { |
| 22 GIT = 0; |
| 23 GITILES = 1; |
| 24 } |
| 25 optional RepoType repo_type = 6 [default = GIT]; |
15 } | 26 } |
16 | 27 |
17 message Package { | 28 message Package { |
18 optional int32 api_version = 1; // Version 1 | 29 optional int32 api_version = 1; // Version 1 |
19 optional string project_id = 2; | 30 optional string project_id = 2; |
20 optional string recipes_path = 3; | 31 optional string recipes_path = 3; |
21 repeated DepSpec deps = 4; | 32 repeated DepSpec deps = 4; |
22 } | 33 } |
OLD | NEW |