-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Using Windows, add exe extension to tools #11608
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This will fix 1 of the 3 issues in #11609
Aren't the
with the makefile change mentioned above, and temporary changing HOSTGO to |
@barts2108 your right the tools do need the Is using cmd.exe or powershell a requirement for you to develop Telegraf? Otherwise at this point I would rather just update the documentation to say we require MinGW to avoid making the makefile anymore confusing. |
nice find!
Does power shell have |
Did you notice i added the EXEEXT in those two lines in the build_tools? cmd or powershe is not a real requirement. However when you just add a requirement for MingW, then please add some documentation too how it must be setup and how it is used. Currently the readme that i used only containse a git clone, a cd and a make instruction. Nothing about environment variables or so. |
'rmdir /s /q telegraf' Edit: i think i forgot the need for some universal commands. But why not using if statements for commands that are different on windows ? |
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
When building Telegraf on a Windows machine, the new tools were being built without
exe
extension causing the following error:plugins\inputs\wireguard\wireguard.go:1: running "../../../tools/readme_config_includer/generator": exec: "H:\\Sandbox\\telegraf\\tools\\readme_config_includer\\generator": file does not exist
for each pluginUpdated the makefile to add
exe
extension ifGOOS
is set to windows.