Skip to content

Commit

Permalink
fix(go): Allow unresolved golang dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
elldritch committed Feb 9, 2018
1 parent 9ad32d4 commit f6e14ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ func getDeps(pkg *depth.Pkg) ([]Dependency, error) {
}
return nil, errors.New("dependency of stdlib detected (this should never happen)")
}
// Fail on "unresolved" packages (i.e. ones that are not in the filesystem) as they indicate an incomplete build.
if !pkg.Resolved {
return nil, errors.New("could not resolve package: " + pkg.Name)
}
// // Fail on "unresolved" packages (i.e. ones that are not in the filesystem) as they indicate an incomplete build.
// // This is commented out because apparently some people have crazy builds.
// if !pkg.Resolved {
// return nil, errors.New("could not resolve package: " + pkg.Name)
// }
return append(deps, Gopkg{ImportPath: pkg.Name}), nil
}

Expand Down

0 comments on commit f6e14ea

Please sign in to comment.