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