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

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

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