Skip to content

Commit

Permalink
fix(go): Fix recursion in internal imports
Browse files Browse the repository at this point in the history
  • Loading branch information
elldritch committed May 15, 2018
1 parent e702181 commit 7418dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builders/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ type goPkg struct {

func goImportIsInternal(pkg string) bool {
log.Logger.Debugf("Checking whether Go package is internal: %s", pkg)
if pkg == "." {
if pkg == "." || pkg == "/" {
return false
}
// TEST: Standard library packages + packages labelled "internal" won't have
Expand Down

0 comments on commit 7418dfa

Please sign in to comment.