snivilised / cobrass

🐲 Assistant for cli applications using cobra
https://pkg.go.dev/github.com/snivilised/cobrass
MIT License
1 stars 0 forks source link

slices.SortFunc does not match inferred type #200

Closed plastikfan closed 1 year ago

plastikfan commented 1 year ago

This breaks downstream projects such as arcadia, where this issue was found:

 plastikfan@Janus  ~/dev/github/go/snivilised/arcadia λ   ref/isolate-viper ±  task t
# github.com/snivilised/cobrass/src/assistant
../../../../../go/pkg/mod/github.com/snivilised/cobrass@v0.3.2/src/assistant/enum.go:198:24: type func(a E, b E) bool of func(a E, b E) bool {…} does not match inferred type func(a E, b E) int for func(a E, b E) int
FAIL    github.com/snivilised/arcadia/src/app/command [build failed]
?       github.com/snivilised/arcadia/src/internal/helpers      [no test files]
ok      github.com/snivilised/arcadia/src/i18n  (cached)
?       github.com/snivilised/arcadia/src/internal/log  [no test files]
?       github.com/snivilised/arcadia/src/log   [no test files]
?       github.com/snivilised/arcadia/src/test/helpers  [no test files]
FAIL
task: Failed to run task "t": exit status 1