我正在尝试导入我的 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)