Skip to content

Commit

Permalink
linker: fmt the result graph and add the newline after the './'
Browse files Browse the repository at this point in the history
  • Loading branch information
scbizu committed Jun 10, 2018
1 parent 9a20e6e commit 3b48213
Show file tree
Hide file tree
Showing 3 changed files with 2,501 additions and 402 deletions.
5 changes: 2 additions & 3 deletions linker/linker.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ func (l *Linker) GetAllPKGNames(allowDup bool, excludeDirs []string) (map[string

names, err := l.GetLayerPKGNames(allowDup, excludeDirs)
if err != nil {
logrus.Errorf("err:%#v", err)
if os.IsNotExist(err) {
logrus.Warnf("[file not exists]:%v", err)
pkgMap[l.RepoPath] = []string{}
return pkgMap, nil
}
return nil, err
}
logrus.Infof("pkgnames:[%v]", names)
logrus.Debugf("pkgnames:[%v]", names)
for _, repo := range names {
if !isThirdPartyPackage(repo) {
continue
Expand All @@ -67,7 +66,7 @@ func (l *Linker) GetAllPKGNames(allowDup bool, excludeDirs []string) (map[string
continue
}
scannedRepo[repo] = true
logrus.Infof("repo path:%v,package:%v", l.RepoPath, repo)
logrus.Debugf("repo path:%v,package:%v", l.RepoPath, repo)
pkgMap[l.RepoPath] = append(pkgMap[l.RepoPath], repo)
lk := NewLinker(l.GoPath, repo)
pkgMap, err = lk.GetAllPKGNames(allowDup, excludeDirs)
Expand Down
Loading

0 comments on commit 3b48213

Please sign in to comment.