From 63a281cc29c012894987e44baf3a47fb4f1f8b1b Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Mon, 10 Jan 2022 17:59:14 -0800 Subject: [PATCH] Do not append .meta_lic to meta_lic Test: manual Change-Id: I8d7162dc55f057d542faaa7feb546050d3a872e7 --- tools/compliance/readgraph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/compliance/readgraph.go b/tools/compliance/readgraph.go index 0b5ebfe2f2..45fa1343ba 100644 --- a/tools/compliance/readgraph.go +++ b/tools/compliance/readgraph.go @@ -80,7 +80,7 @@ func ReadLicenseGraph(rootFS fs.FS, stderr io.Writer, files []string) (*LicenseG lg := newLicenseGraph() for _, f := range files { - if strings.HasSuffix(f, ".meta_lic") { + if strings.HasSuffix(f, "meta_lic") { lg.rootFiles = append(lg.rootFiles, f) } else { lg.rootFiles = append(lg.rootFiles, f+".meta_lic")