You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/01/04 08:28:12 UTC

[GitHub] [rocketmq-client-go] fwhezfwhez opened a new issue #582: go: finding github.com/apache/rocketmq-client-go v2.0.0 go: errors parsing go.mod: G:\go_workspace\GOPATH\src\rocketmq\go.mod:6: require github.com/apache/rocketmq-client-go: reading https://goproxy.io/github.com/apache/rocketmq-client-go/@v/v2.0.0.info: 404 Not Found

fwhezfwhez opened a new issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582


   go: finding github.com/apache/rocketmq-client-go v2.0.0
   go: errors parsing go.mod:
   G:\go_workspace\GOPATH\src\rocketmq\go.mod:6: require github.com/apache/rocketmq-client-go: reading https://goproxy.io/github.com/apache/rocketmq-client-go/@v/v2.0.0.info: 404 Not Found
   
   
   go.mod
   ```
   module rocketmq
   
   go 1.13
   
   require (
   	github.com/apache/rocketmq-client-go v2.0.0
   	github.com/fwhezfwhez/errorx v0.0.0-20201127140441-9d82b2c2216f
   	github.com/gofrs/uuid v4.0.0+incompatible // indirect
   )
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] ShannonDing commented on issue #582: How to import this package using go module

Posted by GitBox <gi...@apache.org>.
ShannonDing commented on issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582#issuecomment-753864741


   it works in my demo:
   
   module rocketmq-demo-native-go
   go 1.13
   require github.com/apache/rocketmq-client-go/v2 v2.1.0-rc5
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] fwhezfwhez commented on issue #582: How to import this package using go module

Posted by GitBox <gi...@apache.org>.
fwhezfwhez commented on issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582#issuecomment-753861065


   Case 5:
   ```go
   module rocketmq
   
   go 1.13
   
   require (
   	github.com/apache/rocketmq-client-go/v2 v2.0.0
   	github.com/fwhezfwhez/errorx v0.0.0-20201127140441-9d82b2c2216f
   	github.com/gofrs/uuid v4.0.0+incompatible // indirect
   )
   
   replace github.com/apache/rocketmq-client-go => github.com/apache/rocketmq-client-go/v2 v2.1.0-rc4.0.20200708050255-80b3acc5580a
   
   ```
   
   Result:
   ```json
   .\consumer.go:19:2: undefined: rlog.SetLogLevel
   .\consumer.go:34:3: undefined: consumer.WithNsResovler
   .\consumer.go:34:27: undefined: primitive.NewPassthroughResolver
   .\producer.go:15:3: undefined: producer.WithNsResovler
   .\producer.go:15:27: undefined: primitive.NewPassthroughResolver
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] fwhezfwhez commented on issue #582: How to import this package using go module

Posted by GitBox <gi...@apache.org>.
fwhezfwhez commented on issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582#issuecomment-753852686


   Here I show how I failed.
   Case 1 :
   ```go
   module rocketmq
   
   go 1.13
   
   require (
   	github.com/apache/rocketmq-client-go v2.0.0
   	github.com/fwhezfwhez/errorx v0.0.0-20201127140441-9d82b2c2216f
   	github.com/gofrs/uuid v4.0.0+incompatible // indirect
   )
   ```
   
   result:
   ```go
   go: finding github.com/apache/rocketmq-client-go v2.0.0
   go: errors parsing go.mod:
   G:\go_workspace\GOPATH\src\rocketmq\go.mod:6: require github.com/apache/rocketmq-client-go: reading https://goproxy.io/github.com/apache/rocketmq-client-go/@v/v2.0.0.info: 404 Not Found
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] fwhezfwhez commented on issue #582: How to import this package using go module

Posted by GitBox <gi...@apache.org>.
fwhezfwhez commented on issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582#issuecomment-753859004


   Case 4:
   ```
   module rocketmq
   
   go 1.13
   
   require (
   	github.com/apache/rocketmq-client-go v0.0.0-00010101000000-000000000000
   	github.com/apache/rocketmq-client-go/v2 v2.0.0 // indirect
   	github.com/fwhezfwhez/errorx v0.0.0-20201127140441-9d82b2c2216f
   	github.com/gofrs/uuid v4.0.0+incompatible // indirect
   )
   
   replace github.com/apache/rocketmq-client-go => github.com/apache/rocketmq-client-go/v2 v2.0.0
   
   ```
   
   download well run fail:
   ```go
   G:/go_workspace/GOPATH/src/rocketmq/fillmod/main.go #gosetup
   ..\..\pkg\mod\github.com\apache\rocketmq-client-go\v2@v2.0.0\consumer\consumer.go:34:2: use of internal package github.com/apache/rocketmq-client-go/v2/internal not allowed
   ..\..\pkg\mod\github.com\apache\rocketmq-client-go\v2@v2.0.0\consumer\consumer.go:35:2: use of internal package github.com/apache/rocketmq-client-go/v2/internal/remote not allowed
   ..\..\pkg\mod\github.com\apache\rocketmq-client-go\v2@v2.0.0\consumer\consumer.go:36:2: use of internal package github.com/apache/rocketmq-client-go/v2/internal/utils not allowed
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] fwhezfwhez commented on issue #582: How to import this package using go module

Posted by GitBox <gi...@apache.org>.
fwhezfwhez commented on issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582#issuecomment-753853937


   Case 2 : 
   ```
   go get github.com/apache/rocketmq-client-go/v2
   ```
   
   download well, but run fail:
   ```go
   build command-line-arguments: cannot load github.com/apache/rocketmq-client-go: module github.com/apache/rocketmq-client-go@latest found (v1.2.4), but does not contain package github.com/apache/rocketmq-client-go
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] fwhezfwhez commented on issue #582: How to import this package using go module

Posted by GitBox <gi...@apache.org>.
fwhezfwhez commented on issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582#issuecomment-753854745


   Case 3:
   ```go
   module rocketmq
   
   go 1.13
   
   require (
   	github.com/fwhezfwhez/errorx v0.0.0-20201127140441-9d82b2c2216f
   	github.com/gofrs/uuid v4.0.0+incompatible // indirect
   )
   
   replace github.com/apache/rocketmq-client-go => github.com/apache/rocketmq-client-go@v2.0.0
   
   ```
   
   fail:
   ```go
   G:\go_workspace\GOPATH\src\rocketmq\go.mod:10: replacement module without version must be directory path (rooted or starting with ./ or ../)
   
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] fwhezfwhez closed issue #582: How to import this package using go module

Posted by GitBox <gi...@apache.org>.
fwhezfwhez closed issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] fwhezfwhez commented on issue #582: How to import this package using go module

Posted by GitBox <gi...@apache.org>.
fwhezfwhez commented on issue #582:
URL: https://github.com/apache/rocketmq-client-go/issues/582#issuecomment-753890667


   @ShannonDing 
   I adopt your advise and it work. 3q!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org