1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-04-25 10:45:19 +02:00

chore: fmt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker 2021-10-12 14:42:00 -03:00
parent 56c46c6d50
commit fb0a007440
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
11 changed files with 16 additions and 28 deletions

View File

@ -1,3 +1,4 @@
//go:build acceptance
// +build acceptance
package nfpm_test
@ -9,12 +10,11 @@ import (
"path/filepath"
"testing"
"github.com/stretchr/testify/require"
"github.com/goreleaser/nfpm/v2"
_ "github.com/goreleaser/nfpm/v2/apk"
_ "github.com/goreleaser/nfpm/v2/deb"
_ "github.com/goreleaser/nfpm/v2/rpm"
"github.com/stretchr/testify/require"
)
// nolint: gochecknoglobals

View File

@ -14,11 +14,10 @@ import (
"path/filepath"
"testing"
"github.com/stretchr/testify/require"
"github.com/goreleaser/nfpm/v2"
"github.com/goreleaser/nfpm/v2/files"
"github.com/goreleaser/nfpm/v2/internal/sign"
"github.com/stretchr/testify/require"
)
// nolint: gochecknoglobals

View File

@ -19,11 +19,10 @@ import (
"github.com/blakesmith/ar"
"github.com/goreleaser/chglog"
"github.com/ulikunitz/xz"
"github.com/goreleaser/nfpm/v2"
"github.com/goreleaser/nfpm/v2/files"
"github.com/goreleaser/nfpm/v2/internal/sign"
"github.com/ulikunitz/xz"
)
const packagerName = "deb"

View File

@ -20,13 +20,12 @@ import (
"github.com/blakesmith/ar"
"github.com/goreleaser/chglog"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xi2/xz"
"github.com/goreleaser/nfpm/v2"
"github.com/goreleaser/nfpm/v2/files"
"github.com/goreleaser/nfpm/v2/internal/sign"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xi2/xz"
)
// nolint: gochecknoglobals

View File

@ -7,10 +7,9 @@ import (
"testing"
"time"
"github.com/goreleaser/nfpm/v2/files"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"github.com/goreleaser/nfpm/v2/files"
)
type testStruct struct {

View File

@ -12,7 +12,6 @@ import (
"github.com/ProtonMail/go-crypto/openpgp"
"github.com/ProtonMail/go-crypto/openpgp/packet"
"github.com/goreleaser/nfpm/v2"
)

View File

@ -9,9 +9,8 @@ import (
"github.com/AlekSi/pointer"
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/stretchr/testify/require"
"github.com/goreleaser/nfpm/v2"
"github.com/stretchr/testify/require"
)
const pass = "hunter2"

View File

@ -11,10 +11,9 @@ import (
"github.com/AlekSi/pointer"
"github.com/Masterminds/semver/v3"
"github.com/goreleaser/chglog"
"github.com/goreleaser/nfpm/v2/files"
"github.com/imdario/mergo"
"gopkg.in/yaml.v3"
"github.com/goreleaser/nfpm/v2/files"
)
// nolint: gochecknoglobals

View File

@ -8,10 +8,9 @@ import (
"strings"
"testing"
"github.com/stretchr/testify/require"
"github.com/goreleaser/nfpm/v2"
"github.com/goreleaser/nfpm/v2/files"
"github.com/stretchr/testify/require"
)
func TestRegister(t *testing.T) {

View File

@ -13,14 +13,11 @@ import (
"time"
"github.com/google/rpmpack"
"github.com/sassoftware/go-rpmutils/cpio"
"github.com/goreleaser/chglog"
"github.com/goreleaser/nfpm/v2"
"github.com/goreleaser/nfpm/v2/files"
"github.com/goreleaser/nfpm/v2/internal/sign"
"github.com/goreleaser/chglog"
"github.com/goreleaser/nfpm/v2"
"github.com/sassoftware/go-rpmutils/cpio"
)
const (

View File

@ -14,14 +14,13 @@ import (
"time"
"github.com/goreleaser/chglog"
"github.com/goreleaser/nfpm/v2"
"github.com/goreleaser/nfpm/v2/files"
"github.com/sassoftware/go-rpmutils"
"github.com/sassoftware/go-rpmutils/cpio"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/crypto/openpgp"
"github.com/goreleaser/nfpm/v2"
"github.com/goreleaser/nfpm/v2/files"
)
func exampleInfo() *nfpm.Info {