Skip to content

Commit 389649a

Browse files
authored
Merge pull request #95 from rst0git/fix-proto-name-conflict
crit/images: fix name conflict with letsencrypt
2 parents 74ddb08 + f70bde6 commit 389649a

File tree

147 files changed

+2873
-3030
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

+2873
-3030
lines changed

crit/Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ update-proto:
1818
git clone --depth 1 --branch master https://github.com/checkpoint-restore/criu criu-temp
1919
cp criu-temp/images/*.proto ./images/
2020
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;'
21+
# To prevent namespace conflict with proto files
22+
# in github.com/letsencrypt/boulder, we prepend
23+
# a prefix to the filenames.
24+
mv ./images/sa.proto ./images/criu-sa.proto
25+
sed -i 's/sa\.proto/criu-sa\.proto/g' images/*.proto
26+
mv ./images/core.proto ./images/criu-core.proto
27+
sed -i 's/core\.proto/criu-core\.proto/g' images/*.proto
2528

2629
gen-proto:
27-
rm ./images/*.pb.go || true
30+
rm -f ./images/*.pb.go
2831
@protoc \
2932
--proto_path=$(proto_path) \
3033
--go_out=$(proto_path) \

crit/images/apparmor.pb.go

Lines changed: 22 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
syntax = "proto2";
2-
package criu;
32

43
message aa_policy {
54
required string name = 1;

crit/images/autofs.pb.go

Lines changed: 17 additions & 17 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

33
syntax = "proto2";
4-
package criu;
54

65
message autofs_entry {
76
required int32 fd = 1;

crit/images/binfmt-misc.pb.go

Lines changed: 16 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

33
syntax = "proto2";
4-
package criu;
54

65
message binfmt_misc_entry {
76
required string name = 1;

crit/images/bpfmap-data.pb.go

Lines changed: 11 additions & 11 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

33
syntax = "proto2";
4-
package criu;
54

65
message bpfmap_data_entry {
76
required uint32 map_id = 1;

0 commit comments

Comments
 (0)