Open
Description
Buffrs does not allow underscores in the package.name
field and recommends hyphens as a word separator. On the other hand, the Protobuf package ...;
directive does not accept hyphens and underscores can be used as a word separator.
This leads to inconsistencies between the package
and import
directive.
# Proto.toml
[package]
name = "foo-bar"
type = "api"
version = "0.1.0"
// proto/service.proto
package foo_bar;
import "foo-bar/messages.proto";
This is because Buffrs will construct the proto/vendor
folder as
proto/vendor/
foo-bar/
service.proto
messages.proto
I would argue that this is inconsistent and confusing for no benefit and that Buffrs should instead align with the Protobuf specification; if not for the Buffrs package.name
, at least for the generated directory structure.
Metadata
Metadata
Assignees
Labels
Issues or ideas which require some discussion, research and more implementation workEverything related to the buffrs cliChanges related to the DatamodelPlease dont work on this if you can contribute something with a higher priorityChanging the inner-workings of buffrsRelated to personal or community opinions