我在github.com下载studygolang源码在install.bat 的时候,报下面这个错误:
can't load package: package util.Date: cannot find package "util.Date" in any of
:
C:\GO\src\util.Date (from $GOROOT)
D:\GoLang\studygolang\websites\code\studygolang\src\util.Date (from $GOP
ATH)
D:\GoLang\studygolang\websites\code\thirdparty\src\util.Date
can't load package: package 5/04/28 周二T14:33:16.95": cannot find package "5/04
/28 周二T14:33:16.95\"" in any of:
C:\GO\src\5\04\28 周二T14:33:16.95" (from $GOROOT)
D:\GoLang\studygolang\websites\code\studygolang\src\5\04\28 周二T14:33:1
6.95" (from $GOPATH)
D:\GoLang\studygolang\websites\code\thirdparty\src\5\04\28 周二T14:33:16
.95"·
不知道这是什么错误,我判断的语句是这一句:
:: -tags "debug" 表示测试
go install -tags "debug" -ldflags "-X util.version.Version "%VERSION%" "-X util.Date "%date:~3,10%T%time%"" ./...
请知道的给我解答一下,谢谢。
这一块Windows下确实有点问题。直接改为 `go install -tags "debug" -ldflags "-X util.version.Version "%VERSION%" ./... ` 试试?
#2
更多评论