Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation errors #61

Open
edoardottt opened this issue Jun 6, 2024 · 3 comments
Open

Installation errors #61

edoardottt opened this issue Jun 6, 2024 · 3 comments

Comments

@edoardottt
Copy link

edoardottt commented Jun 6, 2024

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/[email protected]/attack_create_hostfs_pod.go:12:6: attackHostPathMount redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/attack-create-hostfs-pod.go:12:6: other declaration of attackHostPathMount
go/pkg/mod/github.com/inguardians/[email protected]/attack_create_hostfs_pod.go:45:6: MountRootFS redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/attack-create-hostfs-pod.go:45:6: other declaration of MountRootFS
go/pkg/mod/github.com/inguardians/[email protected]/exec_in_pods.go:5:6: execInPodMenu redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/exec-in-pods.go:5:6: other declaration of execInPodMenu
go/pkg/mod/github.com/inguardians/[email protected]/exec_in_pods.go:63:6: execInAllPods redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/exec-in-pods.go:63:6: other declaration of execInAllPods
go/pkg/mod/github.com/inguardians/[email protected]/exec_in_pods.go:69:6: execInListPods redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/exec-in-pods.go:69:6: other declaration of execInListPods
go/pkg/mod/github.com/inguardians/[email protected]/exec_via_kubelet_api.go:15:6: ExecuteCodeOnKubelet redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/exec-via-kubelet-api.go:15:6: other declaration of ExecuteCodeOnKubelet
go/pkg/mod/github.com/inguardians/[email protected]/list_secrets.go:3:6: listSecrets redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/listSecrets.go:3:6: other declaration of listSecrets
go/pkg/mod/github.com/inguardians/[email protected]/menu_cert_auth.go:11:6: setUpCompletionCertMenu redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/menu-certauth.go:11:6: other declaration of setUpCompletionCertMenu
go/pkg/mod/github.com/inguardians/[email protected]/menu_cert_auth.go:19:6: certMenu redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/menu-certauth.go:19:6: other declaration of certMenu
go/pkg/mod/github.com/inguardians/[email protected]/menu_namespaces.go:11:6: setUpCompletionNsMenu redeclared in this block
	go/pkg/mod/github.com/inguardians/[email protected]/menu-namespaces.go:11:6: other declaration of setUpCompletionNsMenu
go/pkg/mod/github.com/inguardians/[email protected]/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
Copy link
Member

JayBeale commented Aug 6, 2024

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

@edoardottt
Copy link
Author

np, but I'm still receiving the same error

@JayBeale
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants