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:
parent
56c46c6d50
commit
fb0a007440
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -12,7 +12,6 @@ import (
|
|||
|
||||
"github.com/ProtonMail/go-crypto/openpgp"
|
||||
"github.com/ProtonMail/go-crypto/openpgp/packet"
|
||||
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
3
nfpm.go
3
nfpm.go
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue