Skip to content

Commit

Permalink
Merge pull request #95 from rst0git/fix-proto-name-conflict
Browse files Browse the repository at this point in the history
crit/images: fix name conflict with letsencrypt
  • Loading branch information
adrianreber authored Sep 16, 2022
2 parents 74ddb08 + f70bde6 commit 389649a
Show file tree
Hide file tree
Showing 147 changed files with 2,873 additions and 3,030 deletions.
13 changes: 8 additions & 5 deletions crit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ update-proto:
git clone --depth 1 --branch master https://github.com/checkpoint-restore/criu criu-temp
cp criu-temp/images/*.proto ./images/
rm -rf criu-temp
# To prevent namespace conflicts against protobuf files
# from other projects, the files of this repository are
# now registered under the package name `criu`.
ls ./images/*.proto | xargs sed -i '/syntax/a package criu;'
# To prevent namespace conflict with proto files
# in github.com/letsencrypt/boulder, we prepend
# a prefix to the filenames.
mv ./images/sa.proto ./images/criu-sa.proto
sed -i 's/sa\.proto/criu-sa\.proto/g' images/*.proto
mv ./images/core.proto ./images/criu-core.proto
sed -i 's/core\.proto/criu-core\.proto/g' images/*.proto

gen-proto:
rm ./images/*.pb.go || true
rm -f ./images/*.pb.go
@protoc \
--proto_path=$(proto_path) \
--go_out=$(proto_path) \
Expand Down
45 changes: 22 additions & 23 deletions crit/images/apparmor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crit/images/apparmor.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
syntax = "proto2";
package criu;

message aa_policy {
required string name = 1;
Expand Down
34 changes: 17 additions & 17 deletions crit/images/autofs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crit/images/autofs.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT

syntax = "proto2";
package criu;

message autofs_entry {
required int32 fd = 1;
Expand Down
33 changes: 16 additions & 17 deletions crit/images/binfmt-misc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crit/images/binfmt-misc.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT

syntax = "proto2";
package criu;

message binfmt_misc_entry {
required string name = 1;
Expand Down
22 changes: 11 additions & 11 deletions crit/images/bpfmap-data.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crit/images/bpfmap-data.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT

syntax = "proto2";
package criu;

message bpfmap_data_entry {
required uint32 map_id = 1;
Expand Down
Loading

0 comments on commit 389649a

Please sign in to comment.