From 7725107da02b25dc490e0b11d803142b18f77f39 Mon Sep 17 00:00:00 2001 From: Evgeniy Garbuzov Date: Sun, 9 Jun 2024 15:20:00 +0300 Subject: [PATCH] =?UTF-8?q?feat/module02=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D1=84=D0=BB=D0=B0=D0=B3=D0=B8=20-ld?= =?UTF-8?q?flags=3D-extldflags=3D-Wl,-ld=5Fclassic.=20=D0=94=D0=B5=D1=82?= =?UTF-8?q?=D0=B0=D0=BB=D0=B8=20https://github.com/golang/go/issues/61229\?= =?UTF-8?q?#issuecomment-1988965927?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Taskfile.yml | 2 +- go.mod | 2 +- go.sum | 4 ++-- internal/store/schema/chat.go | 4 +++- internal/store/schema/message.go | 4 +++- internal/store/schema/problem.go | 4 +++- internal/store/schema/schema_test.go | 3 ++- 7 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 09aa0b7..2c9b089 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -71,7 +71,7 @@ tasks: tests: cmds: - echo "- Tests" - - go test -race ./... + - go test -ldflags=-extldflags=-Wl,-ld_classic -race ./... build: cmds: diff --git a/go.mod b/go.mod index 5727ccb..0981bcf 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/google/uuid v1.6.0 github.com/kazhuravlev/options-gen v0.33.0 github.com/labstack/echo/v4 v4.12.0 - github.com/mattn/go-sqlite3 v1.14.16 + github.com/mattn/go-sqlite3 v1.14.22 github.com/stretchr/testify v1.9.0 go.uber.org/zap v1.27.0 golang.org/x/sync v0.7.0 diff --git a/go.sum b/go.sum index 47c552c..4e96213 100644 --- a/go.sum +++ b/go.sum @@ -66,8 +66,8 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= -github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= +github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= +github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= diff --git a/internal/store/schema/chat.go b/internal/store/schema/chat.go index 7cd7166..9ede2a8 100644 --- a/internal/store/schema/chat.go +++ b/internal/store/schema/chat.go @@ -1,11 +1,13 @@ package schema import ( + "time" + "entgo.io/ent" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" + "github.com/zestagio/chat-service/internal/types" - "time" ) // Chat holds the schema definition for the Chat entity. diff --git a/internal/store/schema/message.go b/internal/store/schema/message.go index f895259..a3b493d 100644 --- a/internal/store/schema/message.go +++ b/internal/store/schema/message.go @@ -1,11 +1,13 @@ package schema import ( + "time" + "entgo.io/ent" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" + "github.com/zestagio/chat-service/internal/types" - "time" ) // Message holds the schema definition for the Message entity. diff --git a/internal/store/schema/problem.go b/internal/store/schema/problem.go index f0049e2..8703ac1 100644 --- a/internal/store/schema/problem.go +++ b/internal/store/schema/problem.go @@ -1,11 +1,13 @@ package schema import ( + "time" + "entgo.io/ent" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" + "github.com/zestagio/chat-service/internal/types" - "time" ) // Problem holds the schema definition for the Problem entity. diff --git a/internal/store/schema/schema_test.go b/internal/store/schema/schema_test.go index f71e75b..05a6e97 100644 --- a/internal/store/schema/schema_test.go +++ b/internal/store/schema/schema_test.go @@ -2,10 +2,11 @@ package schema_test import ( "context" + "testing" + _ "github.com/mattn/go-sqlite3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" "github.com/zestagio/chat-service/internal/store" storechat "github.com/zestagio/chat-service/internal/store/chat"