inguardians / peirates

Peirates - Kubernetes Penetration Testing tool
https://www.inguardians.com/peirates/
GNU General Public License v2.0
1.24k stars 120 forks source link

Installation errors #61

Open edoardottt opened 4 months ago

edoardottt commented 4 months ago

Am I the only getting all these errors?

go install -v github.com/inguardians/peirates/cmd/peirates@latest
github.com/inguardians/peirates
# github.com/inguardians/peirates
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/attack_create_hostfs_pod.go:12:6: attackHostPathMount redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/attack-create-hostfs-pod.go:12:6: other declaration of attackHostPathMount
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/attack_create_hostfs_pod.go:45:6: MountRootFS redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/attack-create-hostfs-pod.go:45:6: other declaration of MountRootFS
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/exec_in_pods.go:5:6: execInPodMenu redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/exec-in-pods.go:5:6: other declaration of execInPodMenu
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/exec_in_pods.go:63:6: execInAllPods redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/exec-in-pods.go:63:6: other declaration of execInAllPods
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/exec_in_pods.go:69:6: execInListPods redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/exec-in-pods.go:69:6: other declaration of execInListPods
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/exec_via_kubelet_api.go:15:6: ExecuteCodeOnKubelet redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/exec-via-kubelet-api.go:15:6: other declaration of ExecuteCodeOnKubelet
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/list_secrets.go:3:6: listSecrets redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/listSecrets.go:3:6: other declaration of listSecrets
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/menu_cert_auth.go:11:6: setUpCompletionCertMenu redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/menu-certauth.go:11:6: other declaration of setUpCompletionCertMenu
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/menu_cert_auth.go:19:6: certMenu redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/menu-certauth.go:19:6: other declaration of certMenu
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/menu_namespaces.go:11:6: setUpCompletionNsMenu redeclared in this block
    go/pkg/mod/github.com/inguardians/peirates@v1.1.22/menu-namespaces.go:11:6: other declaration of setUpCompletionNsMenu
go/pkg/mod/github.com/inguardians/peirates@v1.1.22/menu_namespaces.go:11:6: too many errors

Context:

go version go1.22.2 linux/amd64
Linux 6.8.0-35-generic
Ubuntu Noble 24.04 LTS
JayBeale commented 2 months ago

Apologies for the delay - I believe this is fixed in the current release.

edoardottt commented 2 months ago

np, but I'm still receiving the same error

JayBeale commented 2 months ago

OK - we'll figure out what's wrong here. We're compiling with build.sh and dist.sh, which use this:

GOOS=linux GOARCH=amd64 go build -ldflags="-s -w"  $(realpath ../cmd/peirates)