Skip to content

ignore "duplicate name" errors on pbjs#501

Closed
endel wants to merge 2 commits intoprotobufjs:masterfrom
endel:patch-2
Closed

ignore "duplicate name" errors on pbjs#501
endel wants to merge 2 commits intoprotobufjs:masterfrom
endel:patch-2

Conversation

@endel
Copy link
Copy Markdown
Contributor

@endel endel commented Nov 29, 2016

Scenario:

When I try to generate a bundle.json from multiple proto files that require the same dependency, I get "duplicate name" exception. See below.

file1.proto

import "common.proto"

file2.proto

import "common.proto"

Command:

pbjs file1.proto file2.proto 

Outputs:

Error: duplicate name '...' in Namespace

@dcodeIO
Copy link
Copy Markdown
Member

dcodeIO commented Nov 29, 2016

Will look into this. Can't accept the PR when it just removes a valid error.

@dcodeIO dcodeIO closed this in 3c16e46 Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants