gomodguard icon indicating copy to clipboard operation
gomodguard copied to clipboard

support deny deps by regex

Open leaxoy opened this issue 10 months ago • 0 comments

In some scenarios, a large number of dependencies with similar names will be used within the organization, and this tool can be used to reject these dependencies according to regular rules.

Example:

xxx.org/yyy/aaa
xxx.org/yyy/bbb
xxx.org/yyy/ccc

for config:

blocked:
  regexps:
    xxx.org/yyy/\w+:
      reason: should use xxx.org/yyy/common instead

leaxoy avatar Apr 15 '24 07:04 leaxoy