diff --git a/go.mod b/go.mod index 51be187..15bb122 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,8 @@ 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.8 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..941f884 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +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.8 h1:gDp86IdQsN/xWjIEmr9MF6o9mpksUgh0fu+9ByFxzIU= +github.com/mattn/go-sqlite3 v1.14.8/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= diff --git a/repositories.bzl b/repositories.bzl index 3696421..d10f1c9 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -1,4 +1,15 @@ load("@bazel_gazelle//:deps.bzl", "go_repository") def go_repositories(): - pass + 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", + sum = "h1:gDp86IdQsN/xWjIEmr9MF6o9mpksUgh0fu+9ByFxzIU=", + version = "v1.14.8", + ) diff --git a/test/BUILD b/test/BUILD index 3d045a8..133fe5a 100644 --- a/test/BUILD +++ b/test/BUILD @@ -6,6 +6,10 @@ go_library( cgo = True, importpath = "github.com/motiejus/bazel-zig-cc/test", visibility = ["//visibility:private"], + deps = [ + "@com_github_datadog_zstd//:go_default_library", + "@com_github_mattn_go_sqlite3//:go_default_library", + ], ) go_binary( diff --git a/test/hello.go b/test/hello.go index ffd599c..9588bd5 100644 --- a/test/hello.go +++ b/test/hello.go @@ -1,5 +1,10 @@ package main +import ( + _ "github.com/DataDog/zstd" + _ "github.com/mattn/go-sqlite3" +) + // #include // void helloworld() { printf("hello, world\n"); } import "C"