我正在尝试导入我的 golang 客户端库。文件夹结构 golang/gms go.mod src cmd gms main.go pkg...
我正在尝试导入我的 golang 客户端库。
文件夹结构
golang/
gms
go.mod
src
cmd
gms
main.go
pkg
globals
globals.go
logger.go
httpclient
client.go
struct.go
point
point.go
struct.go
README.md
这是我的 go.mod 文件的内容
module bitbucket.company.com/users/rishavkumarj/gms-client-library/golang/gms
go 1.21.3
我的代码出现在网址上 https://bitbucket.company.com/bbdc/users/rishavkumarj/repos/gms-client-library/browse
但是当我尝试导入包时,出现了错误
rishavkumarj@go:~/fork/rishavkumarj/gms-client-library/golang/gms$ go get bitbucket.company.com/users/rishavkumarj/gms-client-library/golang/gms
go: bitbucket.company.com/users/rishavkumarj/gms-client-library/golang/gms: module bitbucket.company.com/users/rishavkumarj/gms-client-library/golang: reading https://artifactory.company.com/artifactory/api/go/zextgolangproxy-go-rel-virtual/bitbucket.company.com/users/rishavkumarj/gms-client-library/golang/@v/list: 404
rishavkumarj@go:~/fork/rishavkumarj/gms-client-library/golang/gms$ GOPROXY="" go get bitbucket.company.com/users/rishavkumarj/gms-client-library/golang/gms
go: bitbucket.company.com/users/rishavkumarj/gms-client-library/golang/gms: unrecognized import path "bitbucket.company.com/users/rishavkumarj/gms-client-library/golang": parse https://bitbucket.company.com/users/rishavkumarj/gms-client-library/golang?go-get=1: no go-import meta tags (meta tag bitbucket.company.com/bbdc/users/rishavkumarj did not match import path bitbucket.company.com/users/rishavkumarj/gms-client-library/golang)
错误:go:无法识别的导入路径\'bitbucket.company.com/users/rishavkumarj/repos/gms-client-library/golang/gms/pkg/globals\':解析 https://bitbucket.company.com/users/rishavkumarj/repos/gms-client-library/golang/gms/pkg/globals?go-get=1:没有 go-import 元标记(元标记 bitbucket.company.com/bbdc/users/rishavkumarj 与导入路径 bitbucket.company.com/users/rishavkumarj/repos/gms-client-library/golang/gms/pkg/globals 不匹配)