GOPATH使用Dep软件包的下划线复制路径

时间:2018-09-12 20:45:30

标签: go godeps

我的GOPATH是/ Users / admin / go / marketing

先运行dep ensure,然后运行go build -ldflags="-s -w" -o bin/ma ma/*.go,会产生以下错误。

../database-helpers/database-drivers.go:5:2: cannot find package "_/Users/admin/go/marketing/src/gitlab.myrepo.com/ma/database-helpers/vendor/github.com/denisenkom/go-mssqldb" in any of: /Users/admin/go/marketing/src/_/Users/admin/go/marketing/src/gitlab.myrepo.com/ma/database-helpers/vendor/github.com/denisenkom/go-mssqldb (from $GOPATH)

如果排除下划线和之前的所有内容,该目录肯定存在。

ls /Users/admin/go/marketing/src/gitlab.myrepo.com/ma/database-helpers/vendor/github.com/denisenkom/go-mssqldb
LICENSE.txt     bulkcopy.go     doc.go          mssql.go        net.go          sspi_windows.go     tran.go
README.md       bulkcopy_sql.go     error.go        mssql_go110.go      ntlm.go         tds.go          types.go
appveyor.yml        convert.go      internal        mssql_go19.go       parser.go       token.go        uniqueidentifier.go
buf.go          decimal.go      log.go          mssql_go19pre.go    rpc.go          token_string.go

关于我在做什么错的任何想法吗?

0 个答案:

没有答案