Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Unaviable to compile #1

Open
k2name opened this issue Oct 2, 2022 · 3 comments
Open

Unaviable to compile #1

k2name opened this issue Oct 2, 2022 · 3 comments

Comments

@k2name
Copy link

k2name commented Oct 2, 2022

~/t/zabbix-passenger (master)> go version
go version go1.19 linux/amd64

~/t/zabbix-passenger (master)> go build zabbix-passenger.go

zabbix-passenger.go:7:2: no required module provides package golang.org/x/net/html/charset: go.mod file not found in current directory or any parent directory; see 'go help modules'
zabbix-passenger.go:8:2: no required module provides package gopkg.in/alecthomas/kingpin.v2: go.mod file not found in current directory or any parent directory; see 'go help modules'
zabbix-passenger.go:9:2: no required module provides package gopkg.in/xmlpath.v2: go.mod file not found in current directory or any parent directory; see 'go help modules'

Maybe need add go.mod to repo?
Thank.

@lauer
Copy link

lauer commented Jul 25, 2024

I am not a go developer either, but used an half hour to figure, that you can just run the following in the directory, after changing the location of the kingpin.v2 requirement from gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2 in zabbix-passenger.go

And then

go mod init zabbix-passenger
go mod tidy
go build zabbix-passenger.go

But the build was for no reason, (needed it for freebsd) - because this small app did not give me enough usefull information from passenger-status

@rvanlieshout
Copy link
Member

Thank you for taking the time to debug this @lauer. I'm afraid we're going to archive this project. Feel free to continue on it

@rvanlieshout
Copy link
Member

(and use passenger-status --show=json)

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

No branches or pull requests

3 participants