Skip to content

Commit

Permalink
fix: build fail issues & field separators use line (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshan authored Jul 15, 2024
1 parent dd1cdaa commit 232dd79
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/v1/traffic_manage/routing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ message MetadataRoutingConfig {
// NearbyRoutingConfig routing configuration
message NearbyRoutingConfig {
// 被调服务名,支持*,代表全部服务
string service = 1;
string service = 1 [ json_name = "service" ];
// 被调命名空间
string namespace = 2;
string namespace = 2 [ json_name = "namespace" ];
// 默认就近级别,为空时默认为zone
string match_level = 3;
string match_level = 3 [ json_name = "match_level" ];
// 最大就近级别,为空值默认为none
string max_match_level = 4;
string max_match_level = 4 [ json_name = "max_match_level" ];
// 是否强制就近
bool strictNearby = 5;
bool strict_nearby = 5 [ json_name = "strict_nearby" ];
}

// RuleRoutingConfig routing configuration
Expand Down
3 changes: 3 additions & 0 deletions source/java/build-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ java_root_dir=${workdir}/source/java/polaris-specification
java_test_root_dir=${workdir}/source/java/polaris-specification-test
java_source_dir=${java_root_dir}/src/main

if [ ! -d "${java_source_dir}/proto" ]; then
mkdir -p ${java_source_dir}/proto
fi
cp ${model_dir}/*.proto ${java_source_dir}/proto/
cp ${service_manage_dir}/*.proto ${java_source_dir}/proto/
cp ${traffic_manage_dir}/*.proto ${java_source_dir}/proto/
Expand Down
3 changes: 3 additions & 0 deletions source/java/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ java_root_dir=${workdir}/source/java/polaris-specification
java_test_root_dir=${workdir}/source/java/polaris-specification-test
java_source_dir=${java_root_dir}/src/main

if [ ! -d "${java_source_dir}/proto" ]; then
mkdir -p ${java_source_dir}/proto
fi
cp ${model_dir}/*.proto ${java_source_dir}/proto/
cp ${service_manage_dir}/*.proto ${java_source_dir}/proto/
cp ${traffic_manage_dir}/*.proto ${java_source_dir}/proto/
Expand Down

0 comments on commit 232dd79

Please sign in to comment.