From 11178096f157fcfa4b3554f19bf7779564f69e62 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Thu, 24 Nov 2016 11:52:15 +0800 Subject: [PATCH] build: Move protobuf go:generate line to roachpb With the new recommendation to use `go generate ./pkg/...` the protobuf generation step was getting skipped. --- main.go | 2 -- pkg/roachpb/main_test.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b1124252926d..f04cd832016f 100644 --- a/main.go +++ b/main.go @@ -16,8 +16,6 @@ package main -//go:generate make protobuf - import ( "fmt" "math/rand" diff --git a/pkg/roachpb/main_test.go b/pkg/roachpb/main_test.go index bb0b217072e1..0f4899f18797 100644 --- a/pkg/roachpb/main_test.go +++ b/pkg/roachpb/main_test.go @@ -16,4 +16,6 @@ // Author: Tobias Schottdorf (tobias.schottdorf@gmail.com) package roachpb_test +//go:generate make -C ../.. protobuf + import _ "github.com/cockroachdb/cockroach/pkg/util/log" // for flags