From fe3015743264eed22a31cfe4fc449e53b9fb5ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sun, 18 Feb 2018 22:35:15 +0100 Subject: [PATCH] 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"). --- makedepend.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makedepend.sh b/makedepend.sh index 724e82b39..bc761743e 100755 --- a/makedepend.sh +++ b/makedepend.sh @@ -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" ] -- GitLab