Skip to content
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

Runing promu under windows returns fork/exec C:\Program Files\Go\bin\go.exe: invalid argument #314

Open
jkroepke opened this issue Aug 31, 2024 · 0 comments

Comments

@jkroepke
Copy link

jkroepke commented Aug 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant