hi all, Today I bumped into the conflicting file name registration runtime error below.
``` panic: proto: file "sentencepiece_model.proto" is already registered previously from: "github.com/eliben/go-sentencepiece/internal/model <http://127.0.0.1:8889/eliben/go-sentencepiece/internal/model>" currently from: "github.com /gomlx/go-huggingface/tokenizers/sentencepiece/private/protos <http://127.0.0.1:8889/gomlx/go-huggingface/tokenizers/sentencepiece/private/protos>" See https://protobuf.dev/reference/go/faq#namespace-conflict ``` The two libraries I'm using define the protos under different proto `package` names, as well as different `option go_package` paths -- so in principle, I understand, the protos they define should be unrelated and have no conflict. For the record, `syntax = "proto2"` is defined in both proto files. Just the last part of the file name ("sentencepiece_model.proto") are the same, they are in different paths. I own one of these libraries, so I could change the file name to something like: "sentencepiece_model_<unique_hash>.proto" And that works as expected -- but it is a sad solution :). Am I misunderstanding the error ? Any suggestions on how to prevent such conflicts ? Many thanks in advance. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/protobuf/9ab9719e-dda1-4809-ac61-89b41a4a9ae7n%40googlegroups.com.
