Details
-
Improvement
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
master
-
None
Description
I tried to build cbft in a standalone manner, and ran into compile errors:
$ make build
go build -ldflags '-X main.VERSION=v0.3.1-621-g02192fc' -tags "debug kagome " -o ./cbft ./cmd/cbft
# github.com/couchbase/cbft
./bindata_assetfs.go:70:53: bindataRead redeclared in this block
{{ previous declaration at ./bindata.go:70:53}}
The workaround (from Abhi Dangeti) was to comment out the gen-bindata section of the cbft Makefile:
$ git diff
diff --git a/Makefile b/Makefile
index dab6dff..7589c50 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ default: build
{{ clean:}}
{{ rm -f ./cbft ./cbft_docs}}-build: gen-bindata
+build:
{{ go build $(goflags) -o $(CBFT_OUT) ./cmd/cbft}}build-static:
I wanted to capture this in an issue in case others run into this, and also to have a reference for the workaround. It's not blocking me at all at the moment.