diff --git a/0001-Bump-year-on-golden-files.patch b/0001-Bump-year-on-golden-files.patch new file mode 100644 index 0000000..ec7f4b8 --- /dev/null +++ b/0001-Bump-year-on-golden-files.patch @@ -0,0 +1,48 @@ +From e7db7fe1f846e20286c270e7a2fc4b112a6c9f6c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= +Date: Thu, 7 Jan 2021 16:21:30 +0100 +Subject: [PATCH] Bump year on golden files (#1311) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Robert-André Mauchin +--- + cobra/cmd/testdata/main.go.golden | 2 +- + cobra/cmd/testdata/root.go.golden | 2 +- + cobra/cmd/testdata/test.go.golden | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/cobra/cmd/testdata/main.go.golden b/cobra/cmd/testdata/main.go.golden +index 0bf75c5a..f69d34aa 100644 +--- a/cobra/cmd/testdata/main.go.golden ++++ b/cobra/cmd/testdata/main.go.golden +@@ -1,5 +1,5 @@ + /* +-Copyright © 2020 NAME HERE ++Copyright © 2021 NAME HERE + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. +diff --git a/cobra/cmd/testdata/root.go.golden b/cobra/cmd/testdata/root.go.golden +index 1db829c7..260c7aa8 100644 +--- a/cobra/cmd/testdata/root.go.golden ++++ b/cobra/cmd/testdata/root.go.golden +@@ -1,5 +1,5 @@ + /* +-Copyright © 2020 NAME HERE ++Copyright © 2021 NAME HERE + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. +diff --git a/cobra/cmd/testdata/test.go.golden b/cobra/cmd/testdata/test.go.golden +index 3eef95fe..584daa23 100644 +--- a/cobra/cmd/testdata/test.go.golden ++++ b/cobra/cmd/testdata/test.go.golden +@@ -1,5 +1,5 @@ + /* +-Copyright © 2020 NAME HERE ++Copyright © 2021 NAME HERE + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. diff --git a/golang-github-spf13-cobra.spec b/golang-github-spf13-cobra.spec index 4db8b8c..d0fbf34 100644 --- a/golang-github-spf13-cobra.spec +++ b/golang-github-spf13-cobra.spec @@ -47,6 +47,8 @@ URL: %{gourl} Source0: %{gosource} Source1: glide.yaml Source2: glide.lock +# Bump year on golden files (#1311) +Patch0: https://patch-diff.githubusercontent.com/raw/spf13/cobra/pull/1312.patch#/0001-Bump-year-on-golden-files.patch BuildRequires: golang(github.com/cpuguy83/go-md2man/v2/md2man) BuildRequires: golang(github.com/mitchellh/go-homedir) @@ -61,6 +63,7 @@ BuildRequires: golang(gopkg.in/yaml.v2) %prep %goprep +%patch -p1 cp %{S:1} %{S:2} . mv cobra/README.md README-cobra.md