From 239b7cce74ed066dc362843d39bbaf3353f5027d Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Sun, 1 Jan 2023 15:53:03 -0800 Subject: [PATCH] util/codegen: Remove year from copyright header. Copyright notices in software are not supposed to update the year in the header. Because we have a CI check for `go generate`, we're failing CI until we go update all of the copyright headers in generated files to say 2023. Instead, relax the requirement to always have a year in the copyright header. Fixes https://github.com/tailscale/tailscale/issues/6865 Signed-off-by: Denton Gentry --- cmd/viewer/tests/tests_clone.go | 2 +- cmd/viewer/tests/tests_view.go | 2 +- ipn/ipn_clone.go | 2 +- ipn/ipn_view.go | 2 +- ipn/ipnstate/ipnstate_clone.go | 2 +- scripts/check_license_headers.sh | 15 ++++++++++++++- tailcfg/tailcfg_clone.go | 2 +- tailcfg/tailcfg_view.go | 2 +- types/dnstype/dnstype_clone.go | 2 +- types/dnstype/dnstype_view.go | 2 +- types/persist/persist_clone.go | 2 +- types/persist/persist_view.go | 2 +- util/codegen/codegen.go | 5 ++--- wgengine/filter/filter_clone.go | 2 +- wgengine/wgcfg/wgcfg_clone.go | 2 +- 15 files changed, 29 insertions(+), 17 deletions(-) diff --git a/cmd/viewer/tests/tests_clone.go b/cmd/viewer/tests/tests_clone.go index 8cad5f3f3..8218cbdaa 100644 --- a/cmd/viewer/tests/tests_clone.go +++ b/cmd/viewer/tests/tests_clone.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved. +// Copyright (c) Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cmd/viewer/tests/tests_view.go b/cmd/viewer/tests/tests_view.go index a01853553..cdb7e20c5 100644 --- a/cmd/viewer/tests/tests_view.go +++ b/cmd/viewer/tests/tests_view.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved. +// Copyright (c) Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/ipn/ipn_clone.go b/ipn/ipn_clone.go index 8f9bc0567..77abe86d1 100644 --- a/ipn/ipn_clone.go +++ b/ipn/ipn_clone.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved. +// Copyright (c) Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/ipn/ipn_view.go b/ipn/ipn_view.go index 2209cb0a1..04317b327 100644 --- a/ipn/ipn_view.go +++ b/ipn/ipn_view.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved. +// Copyright (c) Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/ipn/ipnstate/ipnstate_clone.go b/ipn/ipnstate/ipnstate_clone.go index 52d8d6c7e..baad64af1 100644 --- a/ipn/ipnstate/ipnstate_clone.go +++ b/ipn/ipnstate/ipnstate_clone.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved. +// Copyright (c) Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/scripts/check_license_headers.sh b/scripts/check_license_headers.sh index 84e561ce5..7ee6284cd 100755 --- a/scripts/check_license_headers.sh +++ b/scripts/check_license_headers.sh @@ -10,7 +10,7 @@ check_file() { got=$1 - for year in `seq 2019 2022`; do + for year in `seq 2019 2023`; do want=$(cat <