This adds a new command buf plugin update enabling referencing of remote plugin refs in buf.yaml files. Running the command resolves the refs and updates the buf.lock file, adding the new section plugins with the resolved digest. Plugins are cached under the v3/plugins directory. This will allow buf lint to invoke remote plugins locally enabling sharing of custom plugins.
The trimmed output of buf plugin update --help:
Update pinned remote plugins in a buf.lock
Fetch the latest digests for the specified plugin references in buf.yaml.
The first argument is the directory of the local module to update.
Defaults to "." if no argument is specified.
Usage:
buf plugin update <directory> [flags]
An example buf.yaml showing a module dependency and a remote plugin reference:
This adds a new command
buf plugin update
enabling referencing of remote plugin refs inbuf.yaml
files. Running the command resolves the refs and updates thebuf.lock
file, adding the new section plugins with the resolved digest. Plugins are cached under thev3/plugins
directory. This will allowbuf lint
to invoke remote plugins locally enabling sharing of custom plugins.The trimmed output of
buf plugin update --help
:An example
buf.yaml
showing a module dependency and a remote plugin reference:And the related
buf.lock
file generated when runningbuf dep update
and thenbuf plugin update
: