From 70e05ae22cb638a88924f99fd025eecc743383e0 Mon Sep 17 00:00:00 2001 From: Wilko Date: Thu, 22 Aug 2024 21:36:12 +0200 Subject: [PATCH] Fix for #6 --- go.mod | 6 ++++-- go.sum | 12 ++++++------ main.go | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index a44f937..b4ca164 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/cronokirby/saferith v0.33.0 // indirect github.com/go-ble/ble v0.0.0-20240122180141-8c5522f54333 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect - github.com/golang-jwt/jwt v3.2.2+incompatible // indirect + github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -33,4 +33,6 @@ require ( google.golang.org/protobuf v1.34.2 // indirect ) -replace github.com/teslamotors/vehicle-command => github.com/wimaha/vehicle-command v0.0.2 +replace github.com/teslamotors/vehicle-command => github.com/wimaha/vehicle-command v0.0.3 + +replace github.com/go-ble/ble => github.com/wimaha/ble_BleConnectFix v0.0.0-20240822192426-3f74826c1268 diff --git a/go.sum b/go.sum index 64fbace..09995c9 100644 --- a/go.sum +++ b/go.sum @@ -16,12 +16,10 @@ github.com/cronokirby/saferith v0.33.0/go.mod h1:QKJhjoqUtBsXCAVEjw38mFqoi7DebT7 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-ble/ble v0.0.0-20240122180141-8c5522f54333 h1:bQK6D51cNzMSTyAf0HtM30V2IbljHTDam7jru9JNlJA= -github.com/go-ble/ble v0.0.0-20240122180141-8c5522f54333/go.mod h1:fFJl/jD/uyILGBeD5iQ8tYHrPlJafyqCJzAyTHNJ1Uk= github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= -github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= +github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= @@ -68,8 +66,10 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/wimaha/vehicle-command v0.0.2 h1:0sDuAU5kPztcSbn+U0D+lRqLW6jQlPzOZssbBGyyAww= -github.com/wimaha/vehicle-command v0.0.2/go.mod h1:xXNWeJyOFDTXbNK4q0nqnA6IUtvYeWYPCiH7dre1hzk= +github.com/wimaha/ble_BleConnectFix v0.0.0-20240822192426-3f74826c1268 h1:36sDJ2qts2oT/Fy/Wi6MR15C+LHl2+ZUzLp6UaqhS9c= +github.com/wimaha/ble_BleConnectFix v0.0.0-20240822192426-3f74826c1268/go.mod h1:fFJl/jD/uyILGBeD5iQ8tYHrPlJafyqCJzAyTHNJ1Uk= +github.com/wimaha/vehicle-command v0.0.3 h1:B+cFrst50gPxq27iKWVKy3NpBopHcvjp9kXDBLvIvto= +github.com/wimaha/vehicle-command v0.0.3/go.mod h1:OwSUp/6Y91wfNTSWPl6z2bTEr1dz/7InsGRcIVnIZPk= golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa h1:ELnwvuAXPNtPk1TJRuGkI9fDTwym6AYBu0qzT8AcHdI= golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/main.go b/main.go index ad8a9f7..01034aa 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ var exceptedCommands = []string{"flash_lights", "wake_up", "set_charging_amps", var static embed.FS func main() { - log.Info("TeslaBleHttpProxy 1.2.3 is loading ...") + log.Info("TeslaBleHttpProxy 1.2.4 is loading ...") envLogLevel := os.Getenv("logLevel") if envLogLevel == "debug" {