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

[CBBS] Run go generate on pre-commit hook

    XMLWordPrintable

Details

    • 0

    Description

      What is the problem?

      We now autogenerate metrics and their metadata with the script in generation/generate_metrics.go. This is helpful but you need to remember to run the script if you modify the metrics.

      What is the solution?

      We should run go generate on the pre-commit hook if statistician/statistician.go, statistician/metrics.go or generation/generate_metrics.go are in the staging area and then autoformat the resulting generation/metrics.generated.go file.

      Attachments

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

        Activity

          People

            owend Daniel Owen
            Matt.Hall Matt Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty