Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Side by Side Diff: recipe_engine/package.proto

Issue 2071443003: Introduce different repo types (git and gitiles) (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: 80cols Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW
« recipe_engine/fetch.py ('K') | « recipe_engine/fetch.py ('k') | recipe_engine/package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698