pbacsko commented on PR #96:
URL: 
https://github.com/apache/yunikorn-scheduler-interface/pull/96#issuecomment-1598163323

   Tried it under Ubuntu, it works.
   
   ```
   ~/repos/yunikorn-scheduler-interface$ make
   make -C /home/bacskop/repos/yunikorn-scheduler-interface/ build
   make[1]: Entering directory 
'/home/bacskop/repos/yunikorn-scheduler-interface'
   cat scheduler-interface-spec.md | sed -n -e '/```protobuf$/,/^```$/ p' | sed 
'/^```/d' >> si.proto.tmp
   awk '{ if (length > 200) print NR, $0 }' si.proto.tmp | diff - /dev/null
   (diff si.proto.tmp si.proto > /dev/null 2>&1 || mv -f si.proto.tmp si.proto) 
&& \
        rm -f si.proto.tmp
   test -d lib/go/common || mkdir -p lib/go/common
   cat scheduler-interface-spec.md | sed -n -e '/```constants$/,/^```$/ p' | 
sed '/^```/ s/.*//g' >> lib/go/common/tmp_constants.go
   go fmt lib/go/common/tmp_constants.go
   lib/go/common/tmp_constants.go
   (diff lib/go/common/tmp_constants.go lib/go/common/constants.go > /dev/null 
2>&1 || mv -f lib/go/common/tmp_constants.go lib/go/common/constants.go) && \
        rm -f lib/go/common/tmp_constants.go
   test -d lib/go/api || mkdir -p lib/go/api
   cat scheduler-interface-spec.md | sed -n -e '/```golang$/,/^```$/ p' | sed 
'/^```/ s/.*//g' >> lib/go/api/tmp_interface.go
   go fmt lib/go/api/tmp_interface.go
   go: downloading google.golang.org/protobuf v1.30.0
   go: downloading google.golang.org/grpc v1.56.0
   go: downloading google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1
   go: downloading golang.org/x/net v0.10.0
   go: downloading golang.org/x/sys v0.8.0
   go: downloading golang.org/x/text v0.9.0
   lib/go/api/tmp_interface.go
   (diff lib/go/api/tmp_interface.go lib/go/api/interface.go > /dev/null 2>&1 
|| mv -f lib/go/api/tmp_interface.go lib/go/api/interface.go) && \
        rm -f lib/go/api/tmp_interface.go
   make -C lib/go
   make[2]: Entering directory 
'/home/bacskop/repos/yunikorn-scheduler-interface/lib/go'
   mkdir -p protoc && \
        curl -L 
https://github.com/grpc/grpc-go/releases/download/cmd/protoc-gen-go-grpc/v1.3.0/protoc-gen-go-grpc.v1.3.0.linux.amd64.tar.gz
 -o protoc/protoc-gen-go-grpc.v1.3.0.linux.amd64.tar.gz && \
        tar -C protoc/bin -xzvf 
protoc/protoc-gen-go-grpc.v1.3.0.linux.amd64.tar.gz ./protoc-gen-go-grpc && \
        chmod 0755 protoc/bin/protoc-gen-go-grpc
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   100 4328k  100 4328k    0     0  5770k      0 --:--:-- --:--:-- --:--:-- 
25.1M
   ./protoc-gen-go-grpc
   stat protoc/bin/protoc-gen-go-grpc > /dev/null 2>&1
   ls -al protoc/bin
   total 19100
   drwxr-xr-x 2 bacskop bacskop    4096 jún   20 07:59 .
   drwxrwxr-x 4 bacskop bacskop    4096 jún   20 07:59 ..
   -rwxr-xr-x 1 bacskop bacskop 5463176 ápr   21  2022 protoc
   -rwxrwxr-x 1 bacskop bacskop 5735469 jún   14 11:27 protoc-gen-go
   -rwxr-xr-x 1 bacskop bacskop 8344207 márc   2 00:51 protoc-gen-go-grpc
   mkdir -p si/build && \
        (cd /home/bacskop/repos && 
/home/bacskop/repos/yunikorn-scheduler-interface/lib/go/protoc/bin/protoc \
        
--go_out=/home/bacskop/repos/yunikorn-scheduler-interface/lib/go/si/build 
--go_opt=paths=source_relative \
        
--go-grpc_out=/home/bacskop/repos/yunikorn-scheduler-interface/lib/go/si/build 
--go-grpc_opt=paths=source_relative \
        yunikorn-scheduler-interface/si.proto)
   
   syntax check for constants code
   
   protobuf go source generated:
        /home/bacskop/repos/yunikorn-scheduler-interface/lib/go/si/si.pb.go
        /home/bacskop/repos/yunikorn-scheduler-interface/lib/go/si/si_grpc.pb.go
   
   make[2]: Leaving directory 
'/home/bacskop/repos/yunikorn-scheduler-interface/lib/go'
   make[1]: Leaving directory '/home/bacskop/repos/yunikorn-scheduler-interface'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to