From dc502a38f65595c2140f4a34873b1d701155557d Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Thu, 18 Dec 2025 11:23:44 -0800 Subject: [PATCH] Fix matching of non-v1 go dependencies Currently if a v2+ module is matched, it will not produce the correct repository name. Use the matched repository name rather than the go module name to determine the github repository. Signed-off-by: Derek McGowan --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 5a0e304..aaefc79 100644 --- a/main.go +++ b/main.go @@ -393,10 +393,11 @@ This tool should run from the root of the project repository for a new release. return fmt.Errorf("failed to get authors for %s: %w", name, err) } if linkify || highlights { - if !strings.HasPrefix(dep.Name, "github.com/") { + repo := matches[0] + if !strings.HasPrefix(repo, "github.com/") { logrus.Debugf("linkify only supported for Github, skipping %s", dep.Name) } else { - ghname := dep.Name[11:] + ghname := repo[11:] for _, change := range changes { if err := githubChange(ghname, ghname, cache, refreshCache).process(change); err != nil { return err