Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-30704

Error building CBFT standalone

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Cannot Reproduce
    • Trivial
    • None
    • master
    • cbft
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            abhinav Abhi Dangeti
            traun Traun Leyden (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty