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:
parent
a7bd5298a4
commit
6135c9f2bd
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user