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/07/16 04:18:56 UTC

[GitHub] [pulsar] freeznet commented on issue #4726: pulsar-function-go/log is not exist

freeznet commented on issue #4726: pulsar-function-go/log is not exist
URL: https://github.com/apache/pulsar/issues/4726#issuecomment-511658450
 
 
   @wolfstudy thanks but i am still confusing.
   
   - `pulsar-client-cpp` with version 2.4.0 was installed from deb release
   - golang version is `go1.12.6`
   
   following are my test files
   
   - go.mod
   ```
   module test-functions
   
   go 1.12
   
   require github.com/apache/pulsar/pulsar-function-go v0.0.0-20190713045844-6ff1bbae0fe2
   ```
   
   - helloFunc.go
   
   ```
   package main
   
   import (
       "context"
   
       "github.com/apache/pulsar/pulsar-function-go/pf"
   )
   
   func HandleResponse(ctx context.Context, in []byte) ([]byte, error) {
       res := append(in, 110)
       return res, nil
   }
   
   func main() {
       pf.Start(HandleResponse)
   }
   ```
   
   after `go mod download` without any error, i ran `go build -o examplepulsar helloFunc.go` to build the pulsar function, and got error 
   
   ```
   go: finding github.com/apache/pulsar/pulsar-function-go/log latest
   go: finding github.com/apache/pulsar/pulsar-function-go latest
   build command-line-arguments: cannot load github.com/apache/pulsar/pulsar-function-go/log: cannot find module providing package github.com/apache/pulsar/pulsar-function-go/log
   ```
   which shows github.com/apache/pulsar/pulsar-function-go/log is not exist. you can check github's pulsar-function-go/log, also not exist.
   
   To my understanding, i think `pulsar-function-go/log` is ignored by .gitignore.

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