-
Notifications
You must be signed in to change notification settings - Fork 178
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
Duplicate package names will affect the diagram #166
Comments
Is this what's happening right now? |
Hello! I am developing a tool like this, I think the UML is being output as the same package, when in fact it is a different package, because the package names under client and server are the same. However, it is possible that my design is bad..... This is the command I executed.
<Sample of output> Sorry if this is a different topic.... |
Thanks for your reply! I think you're encountering the same issue as I did. I don't believe this structure design is inherently bad, as it follows the Golang package architecture. However, when we have more packages and use short names, this problem inevitably arises. In my case, when my system has multiple different services with packages named "server," the UML creates incorrect relationship diagrams. |
Unfortunately, I think this issue is still occurring. I just tested it on my project, and it caused the same problem. This leads to an ambiguity in the graph, where the two different structs are merged into one nonexistent struct. |
Thank you for your reply too! Yes, I think it is. However, in larger implementations, I think there is room for improvement, as care must be taken when using goplantuml. For example, “pkg/server/controller” is identified as “pkg.server.controller” and display. |
I think this is a bug.
Different packages should have different paths.
We could use a hash checksum to distinguish between packages with the same name or add the upper-level folder name to the namespace until the paths are different.
Otherwise, it will create an incorrect UML diagram.
The text was updated successfully, but these errors were encountered: