Skip to content
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

Using corev2 breaks template with updated version #26

Open
elfranne opened this issue May 9, 2023 · 0 comments
Open

Using corev2 breaks template with updated version #26

elfranne opened this issue May 9, 2023 · 0 comments

Comments

@elfranne
Copy link

elfranne commented May 9, 2023

Updating go modules breaks current template:

# rename module name in go.mod
go get -u
go mod tidy
go test -v                                                
# github.com/test/test [github.com/test/test.test]
./main.go:40:63: cannot use checkArgs (value of type func(event *"github.com/sensu/sensu-go/api/core/v2".Event) error) as func(event *"github.com/sensu/core/v2".Event) error value in argument to sensu.NewGoHandler
./main.go:40:74: cannot use executeHandler (value of type func(event *"github.com/sensu/sensu-go/api/core/v2".Event) error) as func(event *"github.com/sensu/core/v2".Event) error value in argument to sensu.NewGoHandler
FAIL    github.com/test/test [build failed]

update version are:

github.com/sensu/sensu-go/api/core/v2 v2.16.0
github.com/sensu/sensu-plugin-sdk v0.18.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant