我的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
关于我在做什么错的任何想法吗?