|
13 | 13 | set -e
|
14 | 14 | TMP_DIR=$(mktemp -d)
|
15 | 15 | mkdir -p "${TMP_DIR}"/bin
|
16 |
| -mkdir -p "${TMP_DIR}"/src/github.com/KusionStack/ctrlmesh/pkg |
| 16 | +mkdir -p "${TMP_DIR}"/src/github.com/KusionStack/controller-mesh/pkg |
17 | 17 |
|
18 |
| -cp -r ./{hack,vendor} "${TMP_DIR}"/src/github.com/KusionStack/ctrlmesh/ |
19 |
| -cp -r ./pkg/apis "${TMP_DIR}"/src/github.com/KusionStack/ctrlmesh/pkg/ |
20 |
| -cp ./go.mod "${TMP_DIR}"/src/github.com/KusionStack/ctrlmesh/go.mod |
| 18 | +cp -r ./{hack,vendor} "${TMP_DIR}"/src/github.com/KusionStack/controller-mesh/ |
| 19 | +cp -r ./pkg/apis "${TMP_DIR}"/src/github.com/KusionStack/controller-mesh/pkg/ |
| 20 | +cp ./go.mod "${TMP_DIR}"/src/github.com/KusionStack/controller-mesh/go.mod |
21 | 21 |
|
22 |
| -(cd "${TMP_DIR}"/src/github.com/KusionStack/ctrlmesh; \ |
23 |
| - GO111MODULE=off GOPATH=${TMP_DIR} go build -o ${TMP_DIR}/bin/protoc-gen-gogo github.com/KusionStack/ctrlmesh/vendor/k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo; \ |
| 22 | +(cd "${TMP_DIR}"/src/github.com/KusionStack/controller-mesh; \ |
| 23 | + GO111MODULE=off GOPATH=${TMP_DIR} go build -o ${TMP_DIR}/bin/protoc-gen-gogo github.com/KusionStack/controller-mesh/vendor/k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo; \ |
24 | 24 | PATH=${TMP_DIR}/bin:$PATH GOPATH=${TMP_DIR} \
|
25 |
| - protoc \ |
26 |
| - --gogo_out=plugins=grpc,paths=source_relative:. pkg/apis/ctrlmesh/proto/ctrlmesh.proto) |
| 25 | + protoc --gogo_out=plugins=grpc,paths=source_relative:. pkg/apis/ctrlmesh/proto/ctrlmesh.proto; \ |
| 26 | + protoc --gogo_out=plugins=grpc,paths=source_relative:. pkg/apis/ctrlmesh/proto/throttling.proto ) |
27 | 27 | # protoc bug in code-generator v0.26.1, can not contains '/' in path.
|
28 | 28 |
|
29 | 29 |
|
30 |
| -cp -f "${TMP_DIR}"/src/github.com/KusionStack/ctrlmesh/pkg/apis/ctrlmesh/proto/*.go pkg/apis/ctrlmesh/proto/ |
| 30 | +cp -f "${TMP_DIR}"/src/github.com/KusionStack/controller-mesh/pkg/apis/ctrlmesh/proto/*.go pkg/apis/ctrlmesh/proto/ |
0 commit comments