by a13xb · 11y ago · 0 comments
This shouldn't cause an error, because packages can only register globals within their own namespace. You just end up with two copies of it, with different types.
That will collide with any other package that also uses that registration function for the same value of 'name'.
That is basically guaranteed to lead to bugs.
This seems pretty solvable though. If you vendor a package, you need to make sure you don't do this. If we do gb-style everyone vendors stuff themselves (not in libraries), then it's not an issue.