From 877e6a43d337fb50d43f81ef0031ec648e5fc4ea Mon Sep 17 00:00:00 2001 From: Justin Traglia <95511699+jtraglia@users.noreply.github.com> Date: Thu, 26 Jan 2023 23:42:56 +0100 Subject: [PATCH] Move go.mod & go.sum to repo root (#88) * Move go.mod & go.sum to repo root * Add note to README --- bindings/go/README.md | 9 ++++++++- bindings/go/go.mod => go.mod | 2 +- bindings/go/go.sum => go.sum | 0 3 files changed, 9 insertions(+), 2 deletions(-) rename bindings/go/go.mod => go.mod (84%) rename bindings/go/go.sum => go.sum (100%) diff --git a/bindings/go/README.md b/bindings/go/README.md index 691ba04..1914cba 100644 --- a/bindings/go/README.md +++ b/bindings/go/README.md @@ -62,4 +62,11 @@ go test Run the benchmarks with this command: ``` go test -bench=Benchmark -``` \ No newline at end of file +``` + +## Note + +The `go.mod` and `go.sum` files are in the project's root directory because the +bindings need access to the c-kzg-4844 source, but Go cannot reference files +outside its module/package. The best way to deal with this is to make the whole +project available, that way everything is accessible. diff --git a/bindings/go/go.mod b/go.mod similarity index 84% rename from bindings/go/go.mod rename to go.mod index c36b4a0..e765057 100644 --- a/bindings/go/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ethereum/c-kzg-4844/bindings/go +module github.com/ethereum/c-kzg-4844 go 1.19 diff --git a/bindings/go/go.sum b/go.sum similarity index 100% rename from bindings/go/go.sum rename to go.sum