From 2d5b7630aaac8ca358262301428c498934c3bd27 Mon Sep 17 00:00:00 2001 From: Aaron Boodman Date: Tue, 14 Jul 2015 16:13:26 -0700 Subject: [PATCH] Standardize on _rungen.go for the file to contain go:generate commands. Fixes issue #33. --- datas/_rungen.go | 3 +++ datas/datastore.go | 2 -- types/{gen.go => _rungen.go} | 0 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 datas/_rungen.go rename types/{gen.go => _rungen.go} (100%) diff --git a/datas/_rungen.go b/datas/_rungen.go new file mode 100644 index 0000000000..f562ebcd18 --- /dev/null +++ b/datas/_rungen.go @@ -0,0 +1,3 @@ +package datas + +//go:generate go run gen/types.go -o types.go diff --git a/datas/datastore.go b/datas/datastore.go index 336cc16879..6fb982f5a9 100644 --- a/datas/datastore.go +++ b/datas/datastore.go @@ -7,8 +7,6 @@ import ( "github.com/attic-labs/noms/types" ) -//go:generate go run gen/types.go -o types.go - type DataStore struct { chunks.ChunkStore diff --git a/types/gen.go b/types/_rungen.go similarity index 100% rename from types/gen.go rename to types/_rungen.go