sudo snap alias protobuf.protoc protoc
sudo snap alias protobuf.protoc-gen-go protoc-gen-go
protoc is the protobuf compiler this snap delivers, and the command users would get if they installed protobuf from source or used the binary tarball distribution.
protoc-gen-go is the Go code generator plugin, and it needs this name to be automatically found by protoc.
I like to have a snap for protobuf but I really think it should be named protobuf-stub42 instead of protobuf as you’re not the upstream project. @jdstrand@niemeyer what do you guys think?
My understanding regarding snap names is that by design they can be the same with different publishers. As such, I personally so no reason for a rename. I’ll defer to @niemeyer on this point.
As for the aliases, protoc and protoc-gen-go are binaries provided by distro packages that this snap is meant to replace. +1 for aliases.
It’s pretty common for the publisher of the snap to not be the upstream project. We should only discourage the use of the well known name if the software is not in fact the most well known software with the given name. Otherwise, as @noise points out above we can request the name to the current publisher if the upstream shows up and would like direct control, or even if the current snap gets unmaintained and there’s a better option with some track record.