From dddae68cc7434aecb4a769075002b4dfbf32c70d Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Sat, 23 Jan 2021 15:06:33 +0100 Subject: [PATCH] Add osusergo flag in promu-cgo Signed-off-by: Julien Pivotto --- .promu-cgo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.promu-cgo.yml b/.promu-cgo.yml index 2527fed2..79f4ee2d 100644 --- a/.promu-cgo.yml +++ b/.promu-cgo.yml @@ -8,7 +8,7 @@ repository: build: binaries: - name: node_exporter - flags: -a -tags 'netgo static_build' + flags: -a -tags 'netgo osusergo static_build' ldflags: | -X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.Revision={{.Revision}}