GithubHelp home page GithubHelp logo

Comments (9)

roberthbailey avatar roberthbailey commented on September 25, 2024

@steven-supersolid might also be able to shed some light on the expected behavior here.

from agones.

markmandel avatar markmandel commented on September 25, 2024

I thought that node did it's code gen at runtime?

from agones.

markmandel avatar markmandel commented on September 25, 2024

I thought that node did it's code gen at runtime?

Ignore me - that was the old nodejs.+ grpc.

from agones.

lacroixthomas avatar lacroixthomas commented on September 25, 2024

It seems to be working fine on my side, from what I've seen, the command used in the description of the issue is make gen-sdk-grpc, which only generate the files for the default SDK_FOLDER=go, but not the node one

To generate the node one you can either run make run-sdk-command COMMAND=gen SDK_FOLDER=node or make gen-all-sdk-grpc to generate them all

I can make an PR to update it to beta if you want though ?

from agones.

igooch avatar igooch commented on September 25, 2024

It seems to be working fine on my side, from what I've seen, the command used in the description of the issue is make gen-sdk-grpc, which only generate the files for the default SDK_FOLDER=go, but not the node one

Good catch, typo on my end. I'll update the bug title to make gen-all-sdk-grpc. This should generate for nodejs (and for all "supported" languages in general).

I can make an PR to update it to beta if you want though ?

If you're able to get the make run-sdk-command COMMAND=gen SDK_FOLDER=node to work that would be amazing.

from agones.

lacroixthomas avatar lacroixthomas commented on September 25, 2024

It seems to be working fine on my side, from what I've seen, the command used in the description of the issue is make gen-sdk-grpc, which only generate the files for the default SDK_FOLDER=go, but not the node one

Good catch, typo on my end. I'll update the bug title to make gen-all-sdk-grpc. This should generate for nodejs (and for all "supported" languages in general).

I can make an PR to update it to beta if you want though ?

If you're able to get the make run-sdk-command COMMAND=gen SDK_FOLDER=node to work that would be amazing.

I've been able to generate it, not sure if we want to keep both alpha and beta ?

from agones.

steven-supersolid avatar steven-supersolid commented on September 25, 2024

We'll need to generate this manually for node.js and commit to the repo
We'll need both alpha and beta - alpha appears to be working so should be no change, beta may require a new line in the script

from agones.

steven-supersolid avatar steven-supersolid commented on September 25, 2024

build/build-sdk-images/node/gen.sh needs updating with a line similar to alpha line for each export

e.g. these are the alpha lines. Also see gen.sh in go for how there is a generation line per feature stage

grpc_tools_node_protoc -I ${googleapis} -I ${gatewaygrpc} -I ${sdk}/alpha --js_out=import_style=commonjs,binary:./sdks/nodejs/lib/alpha google/api/annotations.proto google/api/client.proto google/api/field_behavior.proto google/api/http.proto google/api/launch_stage.proto google/api/resource.proto protoc-gen-openapiv2/options/annotations.proto protoc-gen-openapiv2/options/openapiv2.proto
grpc_tools_node_protoc -I ${googleapis} -I ${gatewaygrpc} -I ${sdk}/alpha --grpc_out=generate_package_definition:./sdks/nodejs/lib/alpha --js_out=import_style=commonjs,binary:./sdks/nodejs/lib/alpha alpha.proto

from agones.

steven-supersolid avatar steven-supersolid commented on September 25, 2024

I've done this in my branch so can commit there or wait if we want to keep this separate. Not tested yet so the first command may need changes if additional google/api entries were used

grpc_tools_node_protoc -I ${googleapis} -I ${gatewaygrpc} -I ${sdk}/beta --js_out=import_style=commonjs,binary:./sdks/nodejs/lib/beta google/api/annotations.proto google/api/client.proto google/api/field_behavior.proto google/api/http.proto google/api/launch_stage.proto google/api/resource.proto protoc-gen-openapiv2/options/annotations.proto protoc-gen-openapiv2/options/openapiv2.proto
grpc_tools_node_protoc -I ${googleapis} -I ${gatewaygrpc} -I ${sdk}/beta --grpc_out=generate_package_definition:./sdks/nodejs/lib/beta --js_out=import_style=commonjs,binary:./sdks/nodejs/lib/beta beta.proto

from agones.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.