mirror of
https://github.com/goreleaser/nfpm.git
synced 2026-06-19 08:05:04 +00:00
feat: version as v2 (#268)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
committed by
GitHub
parent
19817233b5
commit
62357a65e2
+1
-1
@@ -23,7 +23,7 @@ linters-settings:
|
||||
goimports:
|
||||
# put imports beginning with prefix after 3rd-party packages;
|
||||
# it's a comma-separated list of prefixes
|
||||
local-prefixes: github.com/goreleaser/nfpm
|
||||
local-prefixes: github.com/goreleaser/nfpm/v2
|
||||
govet:
|
||||
check-shadowing: true
|
||||
errcheck:
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<a href="https://github.com/goreleaser/nfpm/actions?workflow=build"><img alt="GitHub Actions" src="https://img.shields.io/github/workflow/status/goreleaser/nfpm/build?style=for-the-badge"></a>
|
||||
<a href="https://codecov.io/gh/goreleaser/nfpm"><img alt="Codecov branch" src="https://img.shields.io/codecov/c/github/goreleaser/nfpm/master.svg?style=for-the-badge"></a>
|
||||
<a href="https://goreportcard.com/report/github.com/goreleaser/nfpm"><img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/goreleaser/nfpm?style=for-the-badge"></a>
|
||||
<a href="http://godoc.org/github.com/goreleaser/nfpm"><img alt="Go Doc" src="https://img.shields.io/badge/godoc-reference-blue.svg?style=for-the-badge"></a>
|
||||
<a href="http://godoc.org/github.com/goreleaser/nfpm/v2"><img alt="Go Doc" src="https://img.shields.io/badge/godoc-reference-blue.svg?style=for-the-badge"></a>
|
||||
<a href="https://github.com/goreleaser"><img alt="Powered By: GoReleaser" src="https://img.shields.io/badge/powered%20by-goreleaser-green.svg?style=for-the-badge"></a>
|
||||
</p>
|
||||
</p>
|
||||
|
||||
+4
-4
@@ -11,10 +11,10 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
_ "github.com/goreleaser/nfpm/apk"
|
||||
_ "github.com/goreleaser/nfpm/deb"
|
||||
_ "github.com/goreleaser/nfpm/rpm"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
_ "github.com/goreleaser/nfpm/v2/apk"
|
||||
_ "github.com/goreleaser/nfpm/v2/deb"
|
||||
_ "github.com/goreleaser/nfpm/v2/rpm"
|
||||
)
|
||||
|
||||
// nolint: gochecknoglobals
|
||||
|
||||
+3
-3
@@ -47,9 +47,9 @@ import (
|
||||
"text/template"
|
||||
"time"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/internal/sign"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
"github.com/goreleaser/nfpm/v2/internal/sign"
|
||||
)
|
||||
|
||||
const packagerName = "apk"
|
||||
|
||||
+3
-3
@@ -16,9 +16,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/internal/sign"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
"github.com/goreleaser/nfpm/v2/internal/sign"
|
||||
)
|
||||
|
||||
// nolint: gochecknoglobals
|
||||
|
||||
+4
-4
@@ -11,10 +11,10 @@ import (
|
||||
|
||||
"github.com/alecthomas/kingpin"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
_ "github.com/goreleaser/nfpm/apk"
|
||||
_ "github.com/goreleaser/nfpm/deb"
|
||||
_ "github.com/goreleaser/nfpm/rpm"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
_ "github.com/goreleaser/nfpm/v2/apk"
|
||||
_ "github.com/goreleaser/nfpm/v2/deb"
|
||||
_ "github.com/goreleaser/nfpm/v2/rpm"
|
||||
)
|
||||
|
||||
// nolint: gochecknoglobals
|
||||
|
||||
+3
-3
@@ -20,9 +20,9 @@ import (
|
||||
"github.com/blakesmith/ar"
|
||||
"github.com/goreleaser/chglog"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/internal/sign"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
"github.com/goreleaser/nfpm/v2/internal/sign"
|
||||
)
|
||||
|
||||
const packagerName = "deb"
|
||||
|
||||
+3
-3
@@ -23,9 +23,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/internal/sign"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
"github.com/goreleaser/nfpm/v2/internal/sign"
|
||||
)
|
||||
|
||||
// nolint: gochecknoglobals
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/goreleaser/fileglob"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
||||
"github.com/goreleaser/nfpm/internal/glob"
|
||||
"github.com/goreleaser/nfpm/v2/internal/glob"
|
||||
)
|
||||
|
||||
// Content describes the source and destination
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
)
|
||||
|
||||
type testStruct struct {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/goreleaser/nfpm
|
||||
module github.com/goreleaser/nfpm/v2
|
||||
|
||||
go 1.15
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
"golang.org/x/crypto/openpgp"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
)
|
||||
|
||||
// PGPSigner returns a PGP signer that creates a detached non-ASCII-armored
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/crypto/openpgp"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
)
|
||||
|
||||
const pass = "hunter2"
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/imdario/mergo"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
)
|
||||
|
||||
// nolint: gochecknoglobals
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
)
|
||||
|
||||
func TestRegister(t *testing.T) {
|
||||
|
||||
+3
-3
@@ -15,12 +15,12 @@ import (
|
||||
"github.com/google/rpmpack"
|
||||
"github.com/sassoftware/go-rpmutils/cpio"
|
||||
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/internal/sign"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
"github.com/goreleaser/nfpm/v2/internal/sign"
|
||||
|
||||
"github.com/goreleaser/chglog"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+2
-2
@@ -20,8 +20,8 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/crypto/openpgp"
|
||||
|
||||
"github.com/goreleaser/nfpm"
|
||||
"github.com/goreleaser/nfpm/files"
|
||||
"github.com/goreleaser/nfpm/v2"
|
||||
"github.com/goreleaser/nfpm/v2/files"
|
||||
)
|
||||
|
||||
func exampleInfo() *nfpm.Info {
|
||||
|
||||
+1
-1
@@ -22,6 +22,6 @@ created package: /tmp/foo-1.0.0.x86_64.rpm
|
||||
|
||||
## Go Library
|
||||
|
||||
Check the [GoDocs](https://pkg.go.dev/github.com/goreleaser/nfpm?tab=doc) page,
|
||||
Check the [GoDocs](https://pkg.go.dev/github.com/goreleaser/nfpm/v2?tab=doc) page,
|
||||
as well as [NFPM command line implementation](https://github.com/goreleaser/nfpm/blob/master/cmd/nfpm/main.go)
|
||||
and [GoReleaser's usage](https://github.com/goreleaser/goreleaser/blob/master/internal/pipe/nfpm/nfpm.go).
|
||||
|
||||
Reference in New Issue
Block a user