diff --git a/v3/internal/doctor/packagemanager/apt.go b/v3/internal/doctor/packagemanager/apt.go index 1f46db46970..d7d43ea3566 100644 --- a/v3/internal/doctor/packagemanager/apt.go +++ b/v3/internal/doctor/packagemanager/apt.go @@ -40,9 +40,6 @@ func (a *Apt) Packages() Packagemap { "npm": []*Package{ {Name: "npm", SystemPackage: true}, }, - "nfpm": []*Package{ - {Name: "nfpm", SystemPackage: false, InstallCheck: isNfpmInstalled, InstallCommand: "go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest", Optional: true}, - }, } } diff --git a/v3/internal/doctor/packagemanager/dnf.go b/v3/internal/doctor/packagemanager/dnf.go index 223845dd0a6..7c5be417924 100644 --- a/v3/internal/doctor/packagemanager/dnf.go +++ b/v3/internal/doctor/packagemanager/dnf.go @@ -43,9 +43,6 @@ func (y *Dnf) Packages() Packagemap { {Name: "npm", SystemPackage: true}, {Name: "nodejs-npm", SystemPackage: true}, }, - "nfpm*": []*Package{ - {Name: "nfpm", SystemPackage: false, InstallCheck: isNfpmInstalled, InstallCommand: "go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest", Optional: true}, - }, } } diff --git a/v3/internal/doctor/packagemanager/emerge.go b/v3/internal/doctor/packagemanager/emerge.go index aae18e8da06..33c78a2e6b3 100644 --- a/v3/internal/doctor/packagemanager/emerge.go +++ b/v3/internal/doctor/packagemanager/emerge.go @@ -41,9 +41,6 @@ func (e *Emerge) Packages() Packagemap { "npm": []*Package{ {Name: "net-libs/nodejs", SystemPackage: true}, }, - "nfpm": []*Package{ - {Name: "nfpm", SystemPackage: false, InstallCheck: isNfpmInstalled, InstallCommand: "go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest", Optional: true}, - }, } } diff --git a/v3/internal/doctor/packagemanager/eopkg.go b/v3/internal/doctor/packagemanager/eopkg.go index 8f7d0df1d7f..060e5959537 100644 --- a/v3/internal/doctor/packagemanager/eopkg.go +++ b/v3/internal/doctor/packagemanager/eopkg.go @@ -41,9 +41,6 @@ func (e *Eopkg) Packages() Packagemap { "npm": []*Package{ {Name: "nodejs", SystemPackage: true}, }, - "nfpm": []*Package{ - {Name: "nfpm", SystemPackage: false, InstallCheck: isNfpmInstalled, InstallCommand: "go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest", Optional: true}, - }, } } diff --git a/v3/internal/doctor/packagemanager/nixpkgs.go b/v3/internal/doctor/packagemanager/nixpkgs.go index 6d39a53a27c..4141de05676 100644 --- a/v3/internal/doctor/packagemanager/nixpkgs.go +++ b/v3/internal/doctor/packagemanager/nixpkgs.go @@ -55,9 +55,6 @@ func (n *Nixpkgs) Packages() Packagemap { "npm": []*Package{ {Name: channel + ".nodejs", SystemPackage: true}, }, - "nfpm": []*Package{ - {Name: channel + ".nfpm", SystemPackage: false, InstallCheck: isNfpmInstalled, InstallCommand: "go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest", Optional: true}, - }, } } diff --git a/v3/internal/doctor/packagemanager/packagemanager.go b/v3/internal/doctor/packagemanager/packagemanager.go index 3d95291613d..800b05f7a93 100644 --- a/v3/internal/doctor/packagemanager/packagemanager.go +++ b/v3/internal/doctor/packagemanager/packagemanager.go @@ -134,10 +134,6 @@ func AppVersion(name string) string { return npmVersion() } - if name == "nfpm" { - return nfpmVersion() - } - return "" } @@ -171,20 +167,3 @@ func npmVersion() string { version, _ := execCmd("npm", "--version") return strings.TrimSpace(version) } - -func nfpmVersion() string { - output, _ := execCmd("nfpm", "--version") - lines := strings.Split(output, "\n") - for _, line := range lines { - if strings.HasPrefix(line, "GitVersion:") { - version := strings.TrimSpace(strings.TrimPrefix(line, "GitVersion:")) - return version - } - } - return "unknown" -} - -func isNfpmInstalled() bool { - _, err := exec.LookPath("nfpm") - return err == nil -} diff --git a/v3/internal/doctor/packagemanager/pacman.go b/v3/internal/doctor/packagemanager/pacman.go index 131a6a8b685..e785901e930 100644 --- a/v3/internal/doctor/packagemanager/pacman.go +++ b/v3/internal/doctor/packagemanager/pacman.go @@ -41,9 +41,6 @@ func (p *Pacman) Packages() Packagemap { "npm": []*Package{ {Name: "npm", SystemPackage: true}, }, - "nfpm": []*Package{ - {Name: "nfpm", SystemPackage: false, InstallCheck: isNfpmInstalled, InstallCommand: "go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest", Optional: true}, - }, } } diff --git a/v3/internal/doctor/packagemanager/zypper.go b/v3/internal/doctor/packagemanager/zypper.go index 3a350e89578..da3cb200e8b 100644 --- a/v3/internal/doctor/packagemanager/zypper.go +++ b/v3/internal/doctor/packagemanager/zypper.go @@ -44,9 +44,6 @@ func (z *Zypper) Packages() Packagemap { "npm": []*Package{ {Name: "npm10", SystemPackage: true}, }, - "nfpm": []*Package{ - {Name: "nfpm", SystemPackage: false, InstallCheck: isNfpmInstalled, InstallCommand: "go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest", Optional: true}, - }, } }