Merge "Do not append .meta_lic to meta_lic"

This commit is contained in:
Treehugger Robot
2022-01-11 06:11:14 +00:00
committed by Gerrit Code Review

View File

@@ -80,7 +80,7 @@ func ReadLicenseGraph(rootFS fs.FS, stderr io.Writer, files []string) (*LicenseG
lg := newLicenseGraph() lg := newLicenseGraph()
for _, f := range files { for _, f := range files {
if strings.HasSuffix(f, ".meta_lic") { if strings.HasSuffix(f, "meta_lic") {
lg.rootFiles = append(lg.rootFiles, f) lg.rootFiles = append(lg.rootFiles, f)
} else { } else {
lg.rootFiles = append(lg.rootFiles, f+".meta_lic") lg.rootFiles = append(lg.rootFiles, f+".meta_lic")