Skip to content

Commit

Permalink
feat/module02 Добавлены флаги -ldflags=-extldflags=-Wl,-ld_classic. Д…
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy Garbuzov committed Jun 9, 2024
1 parent aae3e14 commit 7725107
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ tasks:
tests:
cmds:
- echo "- Tests"
- go test -race ./...
- go test -ldflags=-extldflags=-Wl,-ld_classic -race ./...

build:
cmds:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
4 changes: 3 additions & 1 deletion internal/store/schema/chat.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion internal/store/schema/message.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion internal/store/schema/problem.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion internal/store/schema/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7725107

Please sign in to comment.