From 6ed6e6036ba41e63a8f124bb1011e6c6905f4bf1 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Thu, 2 Jan 2020 10:44:51 -0500 Subject: [PATCH] godoc/static: update copyright year to 2013 The generated static.go file was missing a license header when it was created in 2013 in CL 12805046. CL 38165 added a license header, using the current year in the template. This causes the static.go file to go "out of date" whenever the year changes. Change the copyright year to be a fixed year when the file was created. This way, the TestStaticIsUpToDate test will stop breaking every year. Updates golang/go#36360 Updates golang/go#11811 Change-Id: If1597b0d93b7eacf23b7de103a6d7e3ca049bb4f Reviewed-on: https://go-review.googlesource.com/c/tools/+/213119 Run-TryBot: Dmitri Shuralyov TryBot-Result: Gobot Gobot Reviewed-by: Rebecca Stambler --- godoc/static/gen.go | 5 ++--- godoc/static/static.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/godoc/static/gen.go b/godoc/static/gen.go index c1c308d1eb..85c67147e1 100644 --- a/godoc/static/gen.go +++ b/godoc/static/gen.go @@ -11,7 +11,6 @@ import ( "fmt" "go/format" "io/ioutil" - "time" "unicode" ) @@ -101,6 +100,6 @@ func appendQuote(out *bytes.Buffer, data []byte) { const warning = `// Code generated by "makestatic"; DO NOT EDIT.` -var license = fmt.Sprintf(`// Copyright %d The Go Authors. All rights reserved. +const license = `// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file.`, time.Now().UTC().Year()) +// license that can be found in the LICENSE file.` diff --git a/godoc/static/static.go b/godoc/static/static.go index ecf34e92ab..97f9bf8b1a 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -1,4 +1,4 @@ -// Copyright 2019 The Go Authors. All rights reserved. +// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.