Steps to reproduce:
- Upload the sources of Zabbix to the server/pc without access to the Internet
- ./configure --enable-agent2
- make install
go: github.com/BurntSushi/[email protected]: Get "https://proxy.golang.org/github.com/%21burnt%21sushi/locker/@v/v0.0.0-20171006230638-a6e239ea1c69.mod": dial tcp: lookup proxy.golang.org on ...:53: server misbehaving
As the server doesn't have access to the Internet, Agent2 cannot be built from the sources as it tries to fetch Go modules from the Internet.
The build should be reproducible in any environment.
There could be no Internet or could be some Internet problems, there could be issues with the availability of github.com or gopkg.in. Or even the needed version of some Go module or the module itself could be deleted, and you will have a broken build.
Go modules should be vendored within the source code of Zabbix to be sure to avoid described issues.