Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid conflicts with other packages #20

Merged
merged 1 commit into from
May 17, 2021
Merged

Avoid conflicts with other packages #20

merged 1 commit into from
May 17, 2021

Conversation

soffokl
Copy link
Member

@soffokl soffokl commented May 17, 2021

panic: proto: file "metrics.proto" is already registered
See https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict

goroutine 1 [running]:
google.golang.org/protobuf/reflect/protoregistry.glob..func1(0x4ec5058, 0xc0003e8a80, 0x4ea0e00, 0xc000405590, 0xc0003e8a80)
	/Users/soffokl/go/pkg/mod/google.golang.org/protobuf@v1.26.0/reflect/protoregistry/registry.go:54 +0x25f
google.golang.org/protobuf/reflect/protoregistry.(*Files).RegisterFile(0xc000404220, 0x4ec9790, 0xc0003e8a80, 0x0, 0x0)
	/Users/soffokl/go/pkg/mod/google.golang.org/protobuf@v1.26.0/reflect/protoregistry/registry.go:127 +0xbb8
google.golang.org/protobuf/internal/filedesc.Builder.Build(0x4b0c539, 0x23, 0x5501520, 0x941, 0x941, 0xe00000000, 0x0, 0x4eaca70, 0xc000400480, 0x4eb4c68, ...)
	/Users/soffokl/go/pkg/mod/google.golang.org/protobuf@v1.26.0/internal/filedesc/build.go:113 +0x1aa
google.golang.org/protobuf/internal/filetype.Builder.Build(0x4b0c539, 0x23, 0x5501520, 0x941, 0x941, 0xe00000000, 0x0, 0x0, 0x0, 0x4eb4c68, ...)
	/Users/soffokl/go/pkg/mod/google.golang.org/protobuf@v1.26.0/internal/filetype/build.go:139 +0x178
github.com/mysteriumnetwork/metrics.file_metrics_proto_init()
	/Users/soffokl/go/pkg/mod/github.com/mysteriumnetwork/metrics@v0.0.13/metrics.pb.go:1441 +0x2d8
github.com/mysteriumnetwork/metrics.init.0()
	/Users/soffokl/go/pkg/mod/github.com/mysteriumnetwork/metrics@v0.0.13/metrics.pb.go:1241 +0x25
exit status 2

panic: proto: file "metrics.proto" is already registered
See https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict

goroutine 1 [running]:
google.golang.org/protobuf/reflect/protoregistry.glob..func1(0x4ec5058, 0xc0003e8a80, 0x4ea0e00, 0xc000405590, 0xc0003e8a80)
	/Users/soffokl/go/pkg/mod/google.golang.org/protobuf@v1.26.0/reflect/protoregistry/registry.go:54 +0x25f
google.golang.org/protobuf/reflect/protoregistry.(*Files).RegisterFile(0xc000404220, 0x4ec9790, 0xc0003e8a80, 0x0, 0x0)
	/Users/soffokl/go/pkg/mod/google.golang.org/protobuf@v1.26.0/reflect/protoregistry/registry.go:127 +0xbb8
google.golang.org/protobuf/internal/filedesc.Builder.Build(0x4b0c539, 0x23, 0x5501520, 0x941, 0x941, 0xe00000000, 0x0, 0x4eaca70, 0xc000400480, 0x4eb4c68, ...)
	/Users/soffokl/go/pkg/mod/google.golang.org/protobuf@v1.26.0/internal/filedesc/build.go:113 +0x1aa
google.golang.org/protobuf/internal/filetype.Builder.Build(0x4b0c539, 0x23, 0x5501520, 0x941, 0x941, 0xe00000000, 0x0, 0x0, 0x0, 0x4eb4c68, ...)
	/Users/soffokl/go/pkg/mod/google.golang.org/protobuf@v1.26.0/internal/filetype/build.go:139 +0x178
github.com/mysteriumnetwork/metrics.file_metrics_proto_init()
	/Users/soffokl/go/pkg/mod/github.com/mysteriumnetwork/metrics@v0.0.13/metrics.pb.go:1441 +0x2d8
github.com/mysteriumnetwork/metrics.init.0()
	/Users/soffokl/go/pkg/mod/github.com/mysteriumnetwork/metrics@v0.0.13/metrics.pb.go:1241 +0x25
exit status 2
@soffokl soffokl added the bug Something isn't working label May 17, 2021
@soffokl soffokl self-assigned this May 17, 2021
@soffokl soffokl merged commit 28d5e7a into master May 17, 2021
@soffokl soffokl deleted the avoid-conflicts branch May 17, 2021 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant