1

[test] remove DataDog/zstd

only one test cgo dependency is quite enough
This commit is contained in:
Motiejus Jakštys 2021-11-07 12:33:39 +02:00
parent f50493ca72
commit 19c7d77ac0
5 changed files with 2 additions and 17 deletions

5
go.mod
View File

@ -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

2
go.sum
View File

@ -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=

View File

@ -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",

View File

@ -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(

View File

@ -1,7 +1,6 @@
package main
import (
_ "github.com/DataDog/zstd"
_ "github.com/mattn/go-sqlite3"
)