Make sure to add the current module to the list

Before we would only add the files from the dependencies,
not the file from the actual module (such as "main.go").
pull/2577/head
Anders F Björklund 2018-02-18 22:35:15 +01:00 committed by dlorenc
parent 5cbbc7cf51
commit fe30157432
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# Generate go dependencies, for make. Uses `go list".
# Usage: makedepend.sh [-t] output package path [extra]
PATH_FORMAT='{{join .Deps "\n"}}'
PATH_FORMAT='{{ .ImportPath }}{{"\n"}}{{join .Deps "\n"}}'
FILE_FORMAT='{{ range $file := .GoFiles }} {{$.Dir}}/{{$file}}{{"\n"}}{{end}}'
if [ "$1" = "-t" ]