From 19c7d77ac0f88b80e7787401029fcbbbf555f2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 7 Nov 2021 12:33:39 +0200 Subject: [PATCH] [test] remove DataDog/zstd only one test cgo dependency is quite enough --- go.mod | 5 +---- go.sum | 2 -- repositories.bzl | 6 ------ test/BUILD | 5 +---- test/hello.go | 1 - 5 files changed, 2 insertions(+), 17 deletions(-) diff --git a/go.mod b/go.mod index a0c8c16..e504133 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,4 @@ module github.com/motiejus/bazel-zig-cc/test go 1.16 -require ( - github.com/DataDog/zstd v1.4.8 - github.com/mattn/go-sqlite3 v1.14.9 -) +require github.com/mattn/go-sqlite3 v1.14.9 diff --git a/go.sum b/go.sum index 86219cc..91694bf 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,2 @@ -github.com/DataDog/zstd v1.4.8 h1:Rpmta4xZ/MgZnriKNd24iZMhGpP5dvUcs/uqfBapKZY= -github.com/DataDog/zstd v1.4.8/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/mattn/go-sqlite3 v1.14.9 h1:10HX2Td0ocZpYEjhilsuo6WWtUqttj2Kb0KtD86/KYA= github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= diff --git a/repositories.bzl b/repositories.bzl index 7f27f4f..341e42b 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -1,12 +1,6 @@ load("@bazel_gazelle//:deps.bzl", "go_repository") def go_repositories(): - go_repository( - name = "com_github_datadog_zstd", - importpath = "github.com/DataDog/zstd", - sum = "h1:Rpmta4xZ/MgZnriKNd24iZMhGpP5dvUcs/uqfBapKZY=", - version = "v1.4.8", - ) go_repository( name = "com_github_mattn_go_sqlite3", importpath = "github.com/mattn/go-sqlite3", diff --git a/test/BUILD b/test/BUILD index 6f67d05..9a6de2e 100644 --- a/test/BUILD +++ b/test/BUILD @@ -7,10 +7,7 @@ go_library( cgo = True, importpath = "github.com/motiejus/bazel-zig-cc/test", visibility = ["//visibility:private"], - deps = [ - "@com_github_datadog_zstd//:zstd", - "@com_github_mattn_go_sqlite3//:go-sqlite3", - ], + deps = ["@com_github_mattn_go_sqlite3//:go-sqlite3"], ) go_binary( diff --git a/test/hello.go b/test/hello.go index 9588bd5..c6489b9 100644 --- a/test/hello.go +++ b/test/hello.go @@ -1,7 +1,6 @@ package main import ( - _ "github.com/DataDog/zstd" _ "github.com/mattn/go-sqlite3" )