Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.

Commit

Permalink
A little backwards compat dance
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Jun 21, 2016
1 parent 3eb9f51 commit 9470915
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ func listPackages(fileRoot, importRoot string) (PackageTree, error) {
//pretty.Printf("ip:\t\t%s\n", ip)

// Find all the imports, across all os/arch combos
p, err := ctx.ImportDir(path, build.ImportComment|build.IgnoreVendor)
// 0x8 is build.IgnoreVendor, but that was introduced in go1.6. This
// gives us easy backwards compat.
p, err := ctx.ImportDir(path, build.ImportComment|0x8)
var pkg Package
if err == nil {
pkg = happy(ip, p)
Expand Down

0 comments on commit 9470915

Please sign in to comment.