You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In looking into the implementation of Packages(), the function internal.PkgPattern() is attempting to validate the package path against a regex that fails on the string "v3": ^(?:[a-zA-Z]+(?:\.[a-zA-Z]+)*|\.\.\.)$.
What I Expect
As v3 is a valid golang package name, I would hope that I would be able to use it with archunit.
Possible Solution
The regex would validate my package path if the regex were updated to be: ^(?:[a-zA-Z][a-zA-Z0-9]*(?:\.[a-zA-Z0-9]+)*|\.\.\.)$
The text was updated successfully, but these errors were encountered:
Overview
First let me say thank you for working on this awesome library. I hope to use it soon in production code!
The Problem I'm Seeing
When calling the
archunit.Packages()
function like:I am getting an error reading:
In looking into the implementation of
Packages()
, the functioninternal.PkgPattern()
is attempting to validate the package path against a regex that fails on the string "v3":^(?:[a-zA-Z]+(?:\.[a-zA-Z]+)*|\.\.\.)$
.What I Expect
As
v3
is a valid golang package name, I would hope that I would be able to use it witharchunit
.Possible Solution
The regex would validate my package path if the regex were updated to be:
^(?:[a-zA-Z][a-zA-Z0-9]*(?:\.[a-zA-Z0-9]+)*|\.\.\.)$
The text was updated successfully, but these errors were encountered: