Skip to content

Conversation

@forgoty
Copy link

@forgoty forgoty commented Dec 5, 2025

@roblaszczak Hello!

I found an issue and prepared a test case to demonstrate it: when public package name matches with layer name and imported in another module then go-cleanarch reports layer violation error.

The origin is I want to have a shared library with common public building blocks by each layer. After I implemented it I noticed go-cleanarch fails. For me use case is totaly valid and go-cleanarch doesn't need to raise an error for a public libraries like this.

I would also glad to provide a fix if you find this use case valid. Please share your opinion.

Thank you!

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.

1 participant