Created attachment 248649 [details] update devel/go-wire to 0.6.0 This patch updates devel/go-wire to 0.6.0: https://github.com/google/wire/releases/tag/v0.6 Fix build with added patch, which actually adds `# explicit; go 1.18`: ``` # golang.org/x/tools v0.17.0 +## explicit; go 1.18 ``` without it we are getting errors: ``` vendor/golang.org/x/tools/internal/event/keys/util.go:14:11: type parameter requires go1.18 or later (-lang was set to .16; check go.mod) vendor/golang.org/x/tools/internal/event/keys/util.go:14:13: embedding interface element ~[]T requires go1.18 or later ang was set to go1.16; check go.mod) vendor/golang.org/x/tools/internal/event/keys/util.go:14:21: embedding interface element ~string requires go1.18 or la (-lang was set to go1.16; check go.mod) vendor/golang.org/x/tools/internal/event/keys/util.go:15:32: invalid argument: s (variable of type S constrained by ~[]T) for len vendor/golang.org/x/tools/internal/event/keys/util.go:16:20: cannot range over s (variable of type S constrained by ~[]T): no core type vendor/golang.org/x/tools/internal/versions/types.go:15:16: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod) ``` See https://github.com/golang/go/issues/54908 for more details.
Hi Denis, what do you think, isn't needed to open the issue on a upstream (github.com/google/wire)?
(In reply to Boris Korzun from comment #1) It would be best option, but I just can't imagine what exactly we'll ask. Will we ask them bump go version just because we have troubles with building it using FreeBSD port system? OK, I created the issue: https://github.com/google/wire/issues/404 I see https://github.com/google/wire is stagnating, so I'm not expecting this issue will be resolved upstream. I'd suggest apply my patch, until upstream resolve it.
Comment on attachment 248649 [details] update devel/go-wire to 0.6.0 Tested, approved. LGTM.
I would also support this patch being applied - both because the patch works and because I am seeing consistent nil pointer exceptions with v0.5.0