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

Go SDK: cannot use runtimeutil.PanicHandlers (variable of type []func(context.Context, interface{})) as []func(interface{}) value in argument to runtimeutil.HandleCrash #13485

Closed
3 of 4 tasks
keshmirian opened this issue Aug 20, 2024 · 1 comment
Labels
area/sdks solution/invalid This is incorrect. Also can be used for spam type/support User support issue - likely not a bug

Comments

@keshmirian
Copy link

Pre-requisites

  • I have double-checked my configuration
  • I have tested with the :latest image tag (i.e. quay.io/argoproj/workflow-controller:latest) and can confirm the issue still exists on :latest. If not, I have explained why, in detail, in my description below.
  • I have searched existing issues and could not find a match for this bug
  • I'd like to contribute the fix myself (see contributing guide)

What happened? What did you expect to happen?

I'm using [email protected] with Go 1.22.5 and I'm getting the following error:

# github.com/argoproj/argo-workflows/v3/workflow/metrics
../../../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/workflow/metrics/server.go:23:32: cannot use runtimeutil.PanicHandlers (variable of type []func(context.Context, interface{})) as []func(interface{}) value in argument to runtimeutil.HandleCrash

Version(s)

v3.5.10

Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.

Use the above configuration. Run Go program. Receive error.

Logs from the workflow controller

n/a

Logs from in your workflow's wait container

n/a
@agilgur5 agilgur5 changed the title (Go) cannot use runtimeutil.PanicHandlers (variable of type []func(context.Context, interface{})) as []func(interface{}) value in argument to runtimeutil.HandleCrash Go SDK: cannot use runtimeutil.PanicHandlers (variable of type []func(context.Context, interface{})) as []func(interface{}) value in argument to runtimeutil.HandleCrash Aug 20, 2024
@Joibel
Copy link
Member

Joibel commented Aug 20, 2024

Please could you provide a link to a minimal reproduction. This description isn't enough to reproduce your issue.

It looks like you're not building with a matching version of the k8s.io packages to that in workflow's go.mod, in particular apimachinery.

@Joibel Joibel removed the type/bug label Aug 20, 2024
@agilgur5 agilgur5 added type/support User support issue - likely not a bug problem/more information needed Not enough information has been provide to diagnose this issue. labels Aug 20, 2024
@agilgur5 agilgur5 added solution/invalid This is incorrect. Also can be used for spam and removed problem/more information needed Not enough information has been provide to diagnose this issue. labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sdks solution/invalid This is incorrect. Also can be used for spam type/support User support issue - likely not a bug
Projects
None yet
Development

No branches or pull requests

3 participants