Commit 1a098cc
fix(go): support semicolon format for exhortignore in indirect deps
The JS client (PR #416) changed the ignore marker format for indirect
dependencies from "// indirect exhortignore" to "// indirect; exhortignore"
to prevent Go tooling from misclassifying indirect deps as direct.
Updated the regex in IgnoredLine() to accept both formats (with and
without semicolon). Updated test fixture to use the new format.
Fixes TC-4345
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 421b4f1 commit 1a098cc
2 files changed
Lines changed: 4 additions & 3 deletions
File tree
- src
- main/java/io/github/guacsec/trustifyda/providers
- test/resources/tst_manifests/golang/go_mod_with_ignore
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
| 570 | + | |
570 | 571 | | |
571 | 572 | | |
572 | 573 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments