Solved net-mgmt/telegraf - go: finding module for package github.com/Azure/go-amqp

Hi all,

On one of my 2 FreeBSD servers I'm having an issue I don't seem to be able to resolve on my own - while trying to compile from ports the port net-mgmt/telegraf is giving the following error:
Code:
$ sudo make install clean
===>  License MIT accepted by the user
===>   telegraf-1.20.3 depends on file: /usr/local/sbin/pkg - found
===>   telegraf-1.20.3 depends on file: /usr/local/bin/go - found
===>   telegraf-1.20.3 depends on package: ca_root_nss>0 - found
===> Fetching all distfiles required by telegraf-1.20.3 for building
===> Fetching github.com/influxdata/telegraf dependencies
===>  Extracting for telegraf-1.20.3
=> SHA256 Checksum OK for go/net-mgmt_telegraf/telegraf-v1.20.3/v1.20.3.mod.
=> SHA256 Checksum OK for go/net-mgmt_telegraf/telegraf-v1.20.3/v1.20.3.zip.
go: finding module for package github.com/Azure/go-amqp
github.com/influxdata/telegraf/plugins/inputs/eventhub_consumer imports
github.com/Azure/azure-event-hubs-go/v3 imports
github.com/Azure/go-amqp: cannot find module providing package github.com/Azure/go-amqp: module lookup disabled by GOPROXY=off
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/telegraf

The server is patched 12.2-RELEASE-p11, it already had telegraf running for a long time, but failed to update with portmaster during my last maintenance window.
Code:
$ uname -mrs
FreeBSD 12.2-RELEASE-p7 amd64

Kindly requesting for help.

Many thanks

Mike
 
Same issue here: 12-STABLE.

This fixed the issue for me (kinda stabby and forceful):

# rm -rf /usr/ports/distfiles/go
# cd /usr/ports/net-mgmt/telegraf
# mv distinfo distinfo.bak
# make makesum


(have a drink while this generates)

Then try to build/install/upgrade again.
 
It worked, thanks!
Code:
===>>> Upgrade of telegraf-1.20.0 to telegraf-1.20.3 complete
(previously installed with pkg)

Mike
 
Back
Top