Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.32 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.32 KB

prend

vendoring tool for protocol buffers. customizable vendoring for proto files,

prend config

All the proto file source must be defined in the prend.yaml file

prend.yaml example

name: test config name
description: test config description
sources:
  - repo_url: https://github.com/manosriram-youtube/reddit_backend.git
    branch: master
    paths:
    - source_proto_path: gateway/protos
      destination_proto_path: vendors/gateway_protos
    - source_proto_path: post_service/protos
      destination_proto_path: vendors/post_service_protos
  - repo_url: https://github.com/manosriram-youtube/grpc-heartbeat.git
    branch: master
    paths:
    - source_proto_path: heartbeat_pb
      destination_proto_path: pb/heartbeat_protos

repo_url: the .git url of the git repository

source_proto_path: the proto file(s) path in the repository

destination_proto_path: path where the fetched proto files are to be placed

branch: branch of the repo to fetch proto files from. if not specified, defaults to the default branch of that repo

Proto file vendoring

Installing

  1. go install github.com/manosriram/prend

TODO

  • track commit for fetches
  • branch support
  • ssh support
  • prend clean command
  • other version control support (tentative)
  • cleanup vendor folder before fetch