Skip to content

Commit 53fb11a

Browse files
authored
Merge pull request #90 from snprajwal/proto-rename
Add package name to crit protobuf files
2 parents baacf56 + 2b00a6d commit 53fb11a

File tree

147 files changed

+3020
-2872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+3020
-2872
lines changed

crit/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ update-proto:
1717
rm ./images/*.proto || true
1818
git clone --depth 1 --branch master https://github.com/checkpoint-restore/criu criu-temp
1919
cp criu-temp/images/*.proto ./images/
20-
rm -R criu-temp
20+
rm -rf criu-temp
21+
# To prevent namespace conflicts against protobuf files
22+
# from other projects, the files of this repository are
23+
# now registered under the package name `criu`.
24+
ls ./images/*.proto | xargs sed -i '/syntax/a package criu;'
2125

2226
gen-proto:
27+
rm ./images/*.pb.go || true
2328
@protoc \
2429
--proto_path=$(proto_path) \
2530
--go_out=$(proto_path) \

crit/images/apparmor.pb.go

Lines changed: 24 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crit/images/apparmor.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
syntax = "proto2";
2+
package criu;
23

34
message aa_policy {
45
required string name = 1;

crit/images/autofs.pb.go

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crit/images/autofs.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: MIT
22

33
syntax = "proto2";
4+
package criu;
45

56
message autofs_entry {
67
required int32 fd = 1;

crit/images/binfmt-misc.pb.go

Lines changed: 18 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crit/images/binfmt-misc.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: MIT
22

33
syntax = "proto2";
4+
package criu;
45

56
message binfmt_misc_entry {
67
required string name = 1;

crit/images/bpfmap-data.pb.go

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crit/images/bpfmap-data.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: MIT
22

33
syntax = "proto2";
4+
package criu;
45

56
message bpfmap_data_entry {
67
required uint32 map_id = 1;

0 commit comments

Comments
 (0)