1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-12 18:56:16 +02:00

feat: version as v2 (#268)

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-12-23 10:25:57 -03:00 committed by GitHub
parent 19817233b5
commit 62357a65e2
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 36 additions and 36 deletions

View File

@ -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:

View File

@ -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>

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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 {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/goreleaser/nfpm
module github.com/goreleaser/nfpm/v2
go 1.15

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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) {

View File

@ -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 (

View File

@ -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 {

View File

@ -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).