From 693de41ff2600871a6597e3bb4d44cb37532f2f6 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Wed, 1 May 2019 12:42:55 -0400 Subject: [PATCH] codegen codecs for nomad structs `ls *[!_test].go` was ignoring any file that ends with `s.go` (or any of the letter inside `[]`), including `structs.go`! --- nomad/structs/generate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/structs/generate.sh b/nomad/structs/generate.sh index 34147c918..04141c34a 100755 --- a/nomad/structs/generate.sh +++ b/nomad/structs/generate.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e -FILES="$(ls *[!_test].go | tr '\n' ' ')" +FILES="$(ls ./*.go | grep -v -e _test.go -e .generated.go | tr '\n' ' ')" codecgen -d 100 -o structs.generated.go ${FILES}