1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00

fix: dont compile without go:generate

This commit is contained in:
Carlos Alexandro Becker 2017-12-18 09:29:58 -02:00
parent a7bd5298a4
commit 6135c9f2bd
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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()