The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
longmeier90

有没有好一点的 grpc 管理工具可以管理 proto 文件,给推荐一个

  •  
  •   longmeier90 · Jun 8, 2022 · 3192 views
    This topic created in 1620 days ago, the information mentioned may be changed or developed.

    我写了一个公共服务( go ),和其他服务(python)通信用的是 grpc 通信。然后两边都共享同一个 proto 文件仓库。我只能在两边项目里添加一个子仓库 proto 这种模式。每次更新 proto 仓库代码,各个服务下面的 proto 都的重新拉取一遍。

    大家有没有更好用的一个什么工具,可以解决类似的问题,或者解决方案。

    5 replies  •  2022-06-11 16:53:49 +08:00
    virusdefender
    virusdefender
    Jun 8, 2022
    1
    这是正解吧,能被版本管理
    arischow
    arischow
    Jun 8, 2022 via iPhone
    2
    发布成一个版本,Python 代码仓库将其作为第三方库引入
    longmeier90
    longmeier90
    OP
    Jun 8, 2022
    3
    @arischow 感觉第三方库不太好管理,因为我这是多语言开发。还有增加一个接口,或者参数就会有改动,太麻烦还不如子仓库好呢
    SorcererXW
    SorcererXW
    Jun 9, 2022
    4
    Buf 家的 protobuf registry, https://buf.build/product/bsr/
    tramm
    tramm
    Jun 11, 2022
    5
    Git 子模块不是蛮好的么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1997 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:54 · PVG 17:54 · LAX 01:54 · JFK 04:54
    ♥ Do have faith in what you're doing.