-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
I'm trying to run promu on a windows system.
I have install go using the offical go msi installer. The installation path is C:\Program Files\Go\ by default.
Running promu build -v returns the following error:
promu build -v
Using config file: .promu.yml
Running command: build [-v]
Building binary: windows_exporter
> windows_exporter.exe
-X github.com/prometheus/common/version.Revision=b9a271cde0c36a09c8966c54855ec4edc2f04e9b -X github.com/prometheus/common/version.Branch=cs -X github.com/prometheus/common/version.BuildUser=jok-pc\jan@JOK-PC -X github.com/prometheus/common/version.BuildDate=20240831-12:55:03 -extldflags '-static' github.com/prometheus-community/windows_exporter
-X github.com/prometheus/common/version.Revision=b9a271cde0c36a09c8966c54855ec4edc2f04e9b -X github.com/prometheus/common/version.Branch=cs -X github.com/prometheus/common/version.BuildUser=jok-pc\jan@JOK-PC -X github.com/prometheus/common/version.BuildDate=20240831-12:55:03 -extldflags '-static' github.com/prometheus-community/windows_exporter
-X github.com/prometheus/common/version.Revision=b9a271cde0c36a09c8966c54855ec4edc2f04e9b -X github.com/prometheus/common/version.Branch=cs -X github.com/prometheus/common/version.BuildUser=jok-pc\jan@JOK-PC -X github.com/prometheus/common/version.BuildDate=20240831-12:55:03 -extldflags '-static' github.com/prometheus-community/windows_exporter: fork/exec C:\Program Files\Go\bin\go.exe: invalid argument
make: *** [Makefile:22: windows_exporter.exe] Error 1
Go is installed and working fine:
PS C:\Users\Jan\GolandProjects\windows_exporter> . "C:\Program Files\Go\bin\go.exe" version
go version go1.23.0 windows/amd64
Version:
PS C:\Users\Jan\GolandProjects\windows_exporter> promu version
promu, version 0.17.0 (branch: HEAD, revision: 3912dec4ab83971903015cc7b2a8d8ff93b73910)
build user: root@1b207db2559b
build date: 20240420-10:35:33
go version: go1.22.2
platform: windows/amd64
tags: static_build
Metadata
Metadata
Assignees
Labels
No labels