提交 fe301574 编写于 作者: A Anders F Björklund 提交者: dlorenc

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").
上级 5cbbc7cf
......@@ -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" ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册