fix(library): fill libraryFixedIns{}.key in ftypes.Pnpm and ftypes.DotNetCore (#1498)

* fix(library): fill key in ftypes.Pnpm and ftypes.DotNetCore

* chore(library): change the data structure of LibraryMap
This commit is contained in:
MaineK00n
2022-07-26 13:53:50 +09:00
committed by GitHub
parent d79d138440
commit ab54266f9e
2 changed files with 22 additions and 31 deletions

View File

@@ -592,7 +592,7 @@ func (l *base) scanLibraries() (err error) {
// auto detect lockfile
if l.ServerInfo.FindLock {
findopt := ""
for filename := range models.LibraryMap {
for _, filename := range models.FindLockFiles {
findopt += fmt.Sprintf("-name %q -o ", filename)
}