From 6f828bf03f0863ad15dd9948a754bf2cf6eaa704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 22 Oct 2024 17:37:26 +0200 Subject: [PATCH 1/2] chore: compile without nosql's support for Postgres and MySQL --- builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder.go b/builder.go index d205656..ed5a94f 100644 --- a/builder.go +++ b/builder.go @@ -152,7 +152,7 @@ func (b Builder) Build(ctx context.Context, outputFile string) error { cmd.Args = append(cmd.Args, "-ldflags", "-w -s", // trim debug symbols "-trimpath", - "-tags", "nobadger", + "-tags", "nobadger", "nomysql", "nopgx", ) } } From f5ff083b7ce771411f047257f4f7cfec395f6bd7 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Tue, 5 Nov 2024 14:36:02 -0500 Subject: [PATCH 2/2] Ignore lint --- .golangci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 622c9ec..c9ed9ea 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -44,3 +44,8 @@ issues: - text: "G306" # G306: Expect WriteFile permissions to be 0600 or less (gosec) linters: - gosec + # integer overflow conversion is not relevant for version numbers + - text: "G115" + linters: + - gosec +