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
|
package artifact
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
@ -11,6 +12,9 @@ import (
|
|||||||
//go:generate stringer -type=Type
|
//go:generate stringer -type=Type
|
||||||
type Type int
|
type Type int
|
||||||
|
|
||||||
|
// ensure Type implements the stringer interface...
|
||||||
|
var _ fmt.Stringer = Type(0)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// UploadableArchive a tar.gz/zip archive to be uploaded
|
// UploadableArchive a tar.gz/zip archive to be uploaded
|
||||||
UploadableArchive Type = iota
|
UploadableArchive Type = iota
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
package artifact
|
package artifact
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"golang.org/x/sync/errgroup"
|
"golang.org/x/sync/errgroup"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ensure Type implements the stringer interface...
|
|
||||||
var _ fmt.Stringer = Type(0)
|
|
||||||
|
|
||||||
func TestAdd(t *testing.T) {
|
func TestAdd(t *testing.T) {
|
||||||
var g errgroup.Group
|
var g errgroup.Group
|
||||||
var artifacts = New()
|
var artifacts = New()
|
||||||
|
Loading…
Reference in New Issue
Block a user