time.Time has no field or method Compar
Closed this issue · 3 comments
Hi,
Hi,
Hi, getting following error:
Ubuntu@0136-ict-prxmx50056:~/large-model-proxy$ go build -o largemodelproxy main.go
command-line-arguments
./main.go:281:67: resourceManager.runningServices[requestingService].lastUsed.Compare undefined (type time.Time has no field or method Compare)
Ubuntu@0136-ict-prxmx50056:~/large-model-proxy$ go version
go version go1.19.1 linux/amd64
Ubuntu@0136-ict-prxmx50056:~/large-model-proxy$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
Its ok, I was able to resolve it by upgrading my go version. I also did a local installation video of it: https://youtu.be/7iDda0xAYlk
Thanks.
Thanks, I will replace this function to be compatible with go 1.19 and will provide binaries for Ubuntu
The code now compiles on go 1.19, relevant commit 3c9fb3c
Also Ubuntu package is now attached to the release: https://github.com/perk11/large-model-proxy/releases/latest