QubitProducts / exporter_exporter

A reverse proxy designed for Prometheus exporters
Apache License 2.0
332 stars 55 forks source link

exporter_exporter-0.5.0.linux-amd64 release is statically linked #102

Open paulexyz opened 5 months ago

paulexyz commented 5 months ago

Despite the CGO setting in the .goreleaser.yml it seems that in the current release the amd64 binary has statically linked dependencies.

[exporter_exporter-0.5.0.linux-amd64]$ ldd exporter_exporter 
    linux-vdso.so.1 (0x00007ffda7de8000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f4aea145000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f4ae9f67000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f4aea16e000)

If I build the project on my workstation from master it seems to build it correctly and not have any dependencies.

paulexyz commented 5 months ago

After digging around a bit I saw that the release v0.5.0 didn't had goreleaser as a build backend yet - that explains why this flag was missing. When do you plan to make a new release which might then include binaries without the libc dependencies?

paulexyz commented 5 months ago

Here are the compiled versions from master... exporter_exporter_0.6.0-prerelease_Windows_x86_64.tar.gz exporter_exporter_0.6.0-prerelease_Linux_arm64.tar.gz exporter_exporter_0.6.0-prerelease_Linux_x86_64.tar.gz