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

Getting error slices sortFunc usage #153

Closed
pavanmt opened this issue Jul 17, 2024 · 1 comment · Fixed by #154
Closed

Getting error slices sortFunc usage #153

pavanmt opened this issue Jul 17, 2024 · 1 comment · Fixed by #154

Comments

@pavanmt
Copy link

pavanmt commented Jul 17, 2024

Hi Team,

Seems there is a issue slices package as it is supposed to return int we are returning bool need to have a fix for this.

Getting below error could you please help me fix the issue:

github.com/otterize/otterize-cli/src/pkg/intentsoutput

../../../../go/pkg/mod/github.com/otterize/otterize-cli@v1.0.5/src/pkg/intentsoutput/transform.go:65:27: type func(intenta v1alpha3.ClientIntents, intentb v1alpha3.ClientIntents) bool of func(intenta, intentb v1alpha3.ClientIntents) bool {…} does not match inferred type func(a v1alpha3.ClientIntents, b v1alpha3.ClientIntents) int for func(a E, b E) int
../../../../go/pkg/mod/github.com/otterize/otterize-cli@v1.0.5/src/pkg/intentsoutput/transform.go:77:45: type func(intenta v1alpha3.Intent, intentb v1alpha3.Intent) bool of func(intenta, intentb v1alpha3.Intent) bool {…} does not match inferred type func(a v1alpha3.Intent, b v1alpha3.Intent) int for func(a E, b E) int

@orishoshan
Copy link
Contributor

Hey @pavanmt! This looks like a mismatch between our GitHub Actions Go version and the one in the go.mod. Will be fixed soon.

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

Successfully merging a pull request may close this issue.

2 participants