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

Include Go build tags for Enterprise edition builds

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Critical
    • SGW 2.5.0
    • None
    • build, sgw
    • None
    • 3
    • Build Team 2018 Sprint 23

    Description

      Hi build team,

      We're prepping for SGW 2.5.0, which includes both CE and EE builds. In order to achieve this, we need to pass a build tag into the Go commands when building the enterprise edition of Sync Gateway.

      This change is backwards compatible, so building older versions of SG, or SG Accel and specifying the build tag will not change anything. It will just ignore the tag if older code is not set up to recognise it.

      I've currently set up a build tag on a branch, called cb_sg_enterprise, there's an example below on how to use it in the build and test steps of sgw_unix_build.sh. The same will need doing for the Windows build script.

      For example:
      CE: go install github.com/couchbase/sync_gateway
      EE: go install -tags cb_sg_enterprise github.com/couchbase/sync_gateway

      CE: go test -race github.com/couchbase/sync_gateway
      EE: go test -race -tags cb_sg_enterprise github.com/couchbase/sync_gateway

      Please let me know if there's anything else required, or if you'd like to change the name of the build tag to be consistent with other Couchbase projects.

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-31808
          # Subject Branch Project Status CR V

          Activity

            People

              ben.brooks Ben Brooks
              ben.brooks Ben Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty