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

Unable to install #51

Open
cyril-marketfeed opened this issue Dec 8, 2022 · 2 comments · May be fixed by #53
Open

Unable to install #51

cyril-marketfeed opened this issue Dec 8, 2022 · 2 comments · May be fixed by #53

Comments

@cyril-marketfeed
Copy link

cyril-marketfeed commented Dec 8, 2022

When I run

go get github.com/opsgenie/opsgenie-lamp/...

I get this message:

go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

@cyril-marketfeed
Copy link
Author

cyril-marketfeed commented Dec 8, 2022

Running

go install github.com/opsgenie/opsgenie-lamp@latest

gives


go: finding module for package github.com/urfave/cli
go: finding module for package github.com/opsgenie/opsgenie-go-sdk-v2/heartbeat
go: finding module for package github.com/opsgenie/opsgenie-go-sdk-v2/integration
go: finding module for package github.com/opsgenie/opsgenie-go-sdk-v2/alert
go: finding module for package github.com/opsgenie/opsgenie-go-sdk-v2/policy
go: finding module for package github.com/opsgenie/opsgenie-go-sdk-v2/logs
go: finding module for package github.com/opsgenie/opsgenie-go-sdk-v2/user
go: finding module for package github.com/opsgenie/opsgenie-go-sdk-v2/client
go: finding module for package gopkg.in/yaml.v2
go: finding module for package github.com/ccding/go-config-reader/config
go: found github.com/urfave/cli in github.com/urfave/cli v1.22.10
go: found github.com/opsgenie/opsgenie-go-sdk-v2/alert in github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.14
go: found github.com/opsgenie/opsgenie-go-sdk-v2/client in github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.14
go: found github.com/opsgenie/opsgenie-go-sdk-v2/heartbeat in github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.14
go: found github.com/opsgenie/opsgenie-go-sdk-v2/integration in github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.14
go: found github.com/opsgenie/opsgenie-go-sdk-v2/logs in github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.14
go: found github.com/opsgenie/opsgenie-go-sdk-v2/policy in github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.14
go: found github.com/opsgenie/opsgenie-go-sdk-v2/user in github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.14
go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.4.0
go: found github.com/ccding/go-config-reader/config in github.com/ccding/go-config-reader v0.0.0-20130817225950-8b6c2b50197f
# golang.org/x/sys/unix
go/pkg/mod/golang.org/x/[email protected]/unix/syscall_darwin.1_13.go:29:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.1_13.go:27:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.1_13.go:40:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: too many errors

@JaapJoris
Copy link

I ran into the same problem. The correct installation command is:

go install github.com/opsgenie/opsgenie-lamp@latest

I've added a PR that updates the README.

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

Successfully merging a pull request may close this issue.

2 participants