From 9996d44ce3b12a7cef42ff8fd8064dbad08e1c5a27c33f286298364398b4434c Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Tue, 13 Nov 2018 07:58:50 +0000 Subject: [PATCH] Accepting request 648689 from home:vrothberg:branches:devel:kubic - crictl/critest: compile version - Require golang >= 1.10. OBS-URL: https://build.opensuse.org/request/show/648689 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/cri-tools?expand=0&rev=4 --- cri-tools.changes | 7 +++++++ cri-tools.spec | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/cri-tools.changes b/cri-tools.changes index b7bbbbc..38faffe 100644 --- a/cri-tools.changes +++ b/cri-tools.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Nov 13 07:50:12 UTC 2018 - Valentin Rothberg + +- crictl/critest: compile version + +- Require golang >= 1.10. + ------------------------------------------------------------------- Tue Oct 2 07:30:42 UTC 2018 - Valentin Rothberg diff --git a/cri-tools.spec b/cri-tools.spec index 1c8436c..f61e73b 100644 --- a/cri-tools.spec +++ b/cri-tools.spec @@ -28,7 +28,7 @@ Source0: %{name}-%{version}.tar.xz Source1: crictl.yaml BuildRequires: go-go-md2man BuildRequires: golang-packaging -BuildRequires: golang(API) >= 1.9 +BuildRequires: golang(API) >= 1.10 # disable stripping of binaries %{go_nostrip} @@ -50,10 +50,12 @@ cd $HOME/go/src/%{project} go build -buildmode=pie \ -o bin/crictl \ + -ldflags '-X %{project}/pkg/version.Version=%{version}' \ %{project}/cmd/crictl go test -buildmode=pie \ -o bin/critest \ + -ldflags '-X %{project}/pkg/version.Version=%{version}' \ -c %{project}/cmd/critest # compile the manpages