You are on page 1of 3

How to import a proto package into a proto file

Fix for “proto does not exist”

1.Go to buf (https://buf.build/divisions-maintenance-group) and extract the package name for the
proto message needed:
dmg/data_services/v1/rates-proto

2.Go to your proto file and import the package:


3.Use the message together with the package name specified in buf:
dmg.data_services.v1

4.Update the buf.yaml file with the new package:


5.Regenerate the buf.lock so it refers the desired package commit:

You might also like