bufbuild / buf

The best way of working with Protocol Buffers.
https://buf.build
Apache License 2.0
8.49k stars 247 forks source link

Fix missing insertion point error handling #3090

Closed emcfarlane closed 2 weeks ago

emcfarlane commented 2 weeks ago

On missing an insertion point, fail with a user facing error and avoid panic'ing due to an invalid slice when the insertion point file is empty.

Fixes #1649

From the issue, buf will now correctly return an error like:

Failure: plugin prost-crate: could not find insertion point "features" in "Cargo.toml"