Closed majst01 closed 1 year ago
This was caused by: https://github.com/golang/exp/commit/302865e7556b4ae5de27248ce625d443ef4ad3ed
Maybe we should wait for go-1.21 (comming Sept.23) and use the slices package from there and keep x/exp behind
Current impl in go master: https://github.com/golang/go/blob/master/src/slices/sort.go#L35
@Gerrit91 @vknabel WDYT ?
Fixing this in our code is relatively easy, but as there are 3rd party dependencies involved (tailscale), I'd prefer to wait. Especially as it's not a critical component.
Later we just replace golang.org/x/exp/slices
with probably slices
, apply the file changes of this PR and are probably done (no matter if tailscale does).
Decision was made to postpone this until go-1.21 was released, then we can switch to the standard library slices
.
I will keep this PR open for reference
I just upgraded metal-lib to Go 1.21 and used the recently released slices
standard lib package.
Ready for review by @Gerrit91 (@majst01 and I did most code here)
We should also check for other occurrences of golang.org/x/exp
and remove them now if possible
We should also check for other occurrences of
golang.org/x/exp
and remove them now if possible
@vknabel Gerrit and me struggled to find the correct int values to return, maybe you can have a extra look
The Problem is bigger:
@vknabel same problem with the meilisearch.go :-(