-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zping example not compiling #641
Comments
I'll take a peek |
Ok, I didn't use the README on purpose just to see if it'd build how I normally do things and it does. I ran:
After that, zping seems to work just fine:
I'd say we probably just need to make the readme better. |
See how this readme works for you: |
Ok I removed the go.mod and go.sum that I created with go mod init and now I can build and run it. The go mod init was done because go install wouldn't work... Thank you. |
cool. i'll close this issue then when the pr merges |
Cloned the sdk repo on a linux machine. Tried running the steps in the README and always end up with this error. This is a 'go run', but the same happened with 'go install', which only worked after a 'go mod init zping' and 'go mod tidy'.
Is this example just too old to be run with current version of go?
`formula349@dev1:~/zitiapps/sdk-golang/example/zping$ go run .
github.com/openziti/transport/v2/proxies
../../../../go/pkg/mod/github.com/openziti/transport/v2@v2.0.146/proxies/http_connect.go:60:20: pfxlog.Logger().WithError undefined (type pfxlog.Builder has no field or method WithError)
github.com/openziti/identity/engines/parsec
../../../../go/pkg/mod/github.com/openziti/identity@v1.0.85/engines/parsec/parsec_engine.go:21:18: undefined: pfxlog.ContextLogger
github.com/openziti/sdk-golang/ziti/edge/posture
../../../../go/pkg/mod/github.com/openziti/sdk-golang@v0.23.44/ziti/edge/posture/cache.go:119:26: cannot use err (variable of type []error) as string value in argument to pfxlog.Logger().Error
f`
The text was updated successfully, but these errors were encountered: