that's a good question...
# spicedb
j
that's a good question...
y
my sense is that it's got something to do with
java_multiple_files = true
, which I wouldn't mind seeing because the
OuterClass
stuff is deeply unintuitive as a user. the only downside is that it'd be a breaking change to the
authzed-java
library.
j
I think a breaking change is okay, so long as it is a significant improvement
y
i'll open an issue and see if i can carve out time to get to it
j
thanks!
i have a changeset to
spicedb/api
that i think will work. how would i test building
authzed-java
locally against those proto files?
j
@Sam ^
s
A quick way would be to edit this in the build.gradle file to point to a local directory with the protos
(Or if you have buf installed, just running the equivalent command with your local proto files)
y
oh, i do have buf installed. how would i go about doing it that way? it's been a while since i've invoked it
j
@Sam ^
y
i tried
buf generate .
in the
spicedb/api
repo root, but it's saying there isn't a
buf.gen.yaml
so i can't do it
buf build
doesn't seem to have much of an effect 🤔
also hmm.
java_multiple_files
doesn't seem to get rid of `OuterClass`es, and I can't for the life of me find any documentation on when `OuterClass`es will be generated. it seems to happen in the cases where there's a single RPC defined for a service and not when there are multiple RPCs, but I don't know why that would be.
also what the hell is the protobuf versioning system? why are there v4 releases, v3 releases, and v22 releases all interleaved? is there an explanation of that somewhere?
yeah i'm having a lot of "wat" right now. I opened an issue on the protobuf repo, and hopefully they can shed some light: https://github.com/protocolbuffers/protobuf/issues/11961
j
protoc can be weird for Java
2 Views