Skip to content

Commit 52375ae

Browse files
Marcin Juszkiewiczyoctozepto
authored andcommitted
prometheus-libvirt-exporter: fix build with newer Go
I have no idea how Go works. This change make build happen. Change-Id: I09ea136c7354143f45f856d5e8d8ed1192879622 (cherry picked from commit 9630032)
1 parent 782d02d commit 52375ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/prometheus/prometheus-libvirt-exporter/Dockerfile.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ ARG prometheus_libvirt_exporter_path=github.com/AlexZzz/libvirt-exporter
3333
{% block prometheus_libvirt_exporter_install %}
3434
ENV GOPATH=/build
3535
RUN go mod init libvirt-exporter \
36+
&& cd ${GOPATH} \
3637
&& go get -v ${prometheus_libvirt_exporter_path}@${prometheus_libvirt_exporter_version} \
37-
&& mv /build/bin/libvirt-exporter /opt \
38+
&& go build ${prometheus_libvirt_exporter_path} \
39+
&& mv /build/libvirt-exporter /opt \
3840
&& rm -rf /build
3941

4042
{% endblock %}

0 commit comments

Comments
 (0)