From 6135c9f2bdd562439c93e86f55b22b6ec8d4d39b Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Mon, 18 Dec 2017 09:29:58 -0200 Subject: [PATCH] fix: dont compile without go:generate --- internal/artifact/artifact.go | 4 ++++ internal/artifact/artifact_test.go | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/artifact/artifact.go b/internal/artifact/artifact.go index 1458f179a..7646879c7 100644 --- a/internal/artifact/artifact.go +++ b/internal/artifact/artifact.go @@ -2,6 +2,7 @@ package artifact import ( + "fmt" "sync" "github.com/apex/log" @@ -11,6 +12,9 @@ import ( //go:generate stringer -type=Type type Type int +// ensure Type implements the stringer interface... +var _ fmt.Stringer = Type(0) + const ( // UploadableArchive a tar.gz/zip archive to be uploaded UploadableArchive Type = iota diff --git a/internal/artifact/artifact_test.go b/internal/artifact/artifact_test.go index d1e24d2a6..f5b17c45f 100644 --- a/internal/artifact/artifact_test.go +++ b/internal/artifact/artifact_test.go @@ -1,16 +1,12 @@ package artifact import ( - "fmt" "testing" "github.com/stretchr/testify/assert" "golang.org/x/sync/errgroup" ) -// ensure Type implements the stringer interface... -var _ fmt.Stringer = Type(0) - func TestAdd(t *testing.T) { var g errgroup.Group var artifacts = New()