You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/05/16 16:46:46 UTC

[GitHub] [pulsar] Jim-Lambert-Bose edited a comment on issue #4286: libpulsar Homebrew formula fails

Jim-Lambert-Bose edited a comment on issue #4286: libpulsar Homebrew formula fails
URL: https://github.com/apache/pulsar/issues/4286#issuecomment-493145130
 
 
   There is no v2.3.x tags on the "go code" in the pulsar repo.  How in the world does that even happen 🤷‍♂ 
   
   I was able to find the git hash of the v2.3.1 commit and pull the right module version via:
   `go get github.com/apache/pulsar/pulsar-client-go@ 7a6f2cca0fdb01e4a1ea1c72d907217a13af8ff1`
   
   But... in the end, there is some compatibility issue.  Even the most basic go example client won't build:
   ```
   package main
   import (
   	"log"
   	"runtime"
   
   	"github.com/apache/pulsar/pulsar-client-go/pulsar"
   )
   func main() {
   	client, err := pulsar.NewClient(pulsar.ClientOptions{
   		URL:                     "pulsar://localhost:6650",
   		OperationTimeoutSeconds: 5,
   		MessageListenerThreads:  runtime.NumCPU(),
   	})
   
   	if err != nil {
   		log.Fatalf("Could not instantiate Pulsar client: %v", err)
   	}
   	client.Close()
   }
   ```
   
   ```
   $ go build
   # github.com/apache/pulsar/pulsar-client-go/pulsar
   ../../../go/pkg/mod/github.com/apache/pulsar/pulsar-client-go@v0.0.0-20190408214626-7a6f2cca0fdb/pulsar/c_message.go:91:63: cannot use size (type _Ctype_int) as type _Ctype_ulong in assignment
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services