Skip to content

zping example not compiling #641

@formula349

Description

@formula349

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/[email protected]/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/[email protected]/engines/parsec/parsec_engine.go:21:18: undefined: pfxlog.ContextLogger

github.com/openziti/sdk-golang/ziti/edge/posture

../../../../go/pkg/mod/github.com/openziti/[email protected]/ziti/edge/posture/cache.go:119:26: cannot use err (variable of type []error) as string value in argument to pfxlog.Logger().Error
f`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions