build: patch library fix (link dependencies)

This commit is contained in:
xushiwei
2024-06-17 18:58:01 +08:00
parent 98f3e45c0a
commit 592500cb0c
2 changed files with 21 additions and 23 deletions

View File

@@ -121,9 +121,6 @@ func NewDeduper() Deduper {
func (p Deduper) Check(pkgPath string) *Cached {
if v, ok := p.cache.Load(pkgPath); ok {
if DebugPackagesLoad {
log.Println("==> dedup.check:", pkgPath)
}
return v.(*Cached)
}
return nil
@@ -131,7 +128,7 @@ func (p Deduper) Check(pkgPath string) *Cached {
func (p Deduper) set(pkgPath string, cp *Cached) {
if DebugPackagesLoad {
log.Println("==> dedup.set:", pkgPath)
log.Println("==> Import", pkgPath)
}
p.cache.Store(pkgPath, cp)
}