#HOSTGO := env -u GOOS -u GOARCH -u GOARM -- go
HOSTGO := go
Unfortunately, this will re-introduce the cross-build issue. It does seem that users are running with powershell, as we got another issue today. We can continue in that issue and see where we get.
Thanks again!
Back here for a last update:
Using git-bash works, and now is able to build the executables for windows and linux on windows.
For those looking for the information how to use it, I managed to get it working with these steps
Start cmd.exe
set environment variable(s) GOOS, GOARCH, GOARM as required. If they are not set, it seems that the compilation by default is for the platform and architecture you’re running on. After setting the environment variables continue at next point
Start git-bash
"C:\Program Files\Git\git-bash.exe" --cd-to-home
cd to the folder you want to use for your build
git clone https://github.com/influxdata/telegraf.git
cd to the telegraf folder
Thanks for this!
Should you need to change those Go variables, You should also be able to set on the command line in the git-bash shell. For example, if I wanted to cross-build for the arm64 architecture:
GOARCH=arm64 make
LATEST RELEASES
Real-world AI starts with time series. Time series starts with InfluxDB 3.
Get the Updates