Error encountered during recompiling send2opsgenie

後藤 新平
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2024

Hi Every one!

I am modifying the send2opsgenie script for Zabbix and attempting to rebuild it. The build is being executed on a Red Hat Enterprise 8 server.

https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-zabbix-plugin/ 

I am referencing the link at the bottom of this page to extract go1.23.2.linux-amd64.tar.gz. I have also executed "export PATH=$PATH:/usr/local/go/bin" and confirmed that the go version can be displayed. However, when I run "go build send2opsgenie.go", the following message is displayed. I am not familiar with Go language and unsure what to do with this message. Could it be that there are missing modules?



The following is the error message.

send2opsgenie.go:10:2: no required module provides package github.com/alexcesaro/log: go.mod file not found in current directory or any parent directory; see 'go help modules' send2opsgenie.go:11:2: no required module provides package github.com/alexcesaro/log/golog: go.mod file not found in current directory or any parent directory; see 'go help modules'

 

The following is the error message.

1 answer

1 vote
Chris DeGidio
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2024

hi there,

Yes, it appears your go environment is missing some key modules to build the go executable. This should help resolve that:

go get github.com/alexcesaro/log
go get github.com/alexcesaro/log/golog

- Chris 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events