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