Skip to content

Commit

Permalink
Add main module information to modules integration
Browse files Browse the repository at this point in the history
  • Loading branch information
wingyplus committed Apr 15, 2020
1 parent a1cdb3d commit a304638
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ func extractModules() map[string]string {
Logger.Printf("ModuleIntegration wasn't able to extract modules because this binary doesn't use go module mode.")
return nil
}
modules := make(map[string]string)
modules := map[string]string{
info.Main.Path: info.Main.Version,
}
for _, dep := range info.Deps {
ver := dep.Version
if dep.Replace != nil {
Expand Down

0 comments on commit a304638

Please sign in to comment.