Parcourir la source

scripts: remove special case for _strings.go files in check license headers

And add a license header for derp/dropreason_string.go to make it happy.

Signed-off-by: Josh Bleecher Snyder <[email protected]>
Josh Bleecher Snyder il y a 4 ans
Parent
commit
0ec9040c5e
2 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 0
      derp/dropreason_string.go
  2. 0 3
      scripts/check_license_headers.sh

+ 4 - 0
derp/dropreason_string.go

@@ -1,3 +1,7 @@
+// Copyright (c) 2021 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.
+
 // Code generated by "stringer -type=dropReason -trimprefix=dropReason"; DO NOT EDIT.
 
 package derp

+ 0 - 3
scripts/check_license_headers.sh

@@ -38,9 +38,6 @@ for file in $(find $1 -name '*.go' -not -path '*/.git/*'); do
         $1/wgengine/router/ifconfig_windows.go)
             # WireGuard copyright.
         ;;
-		*_string.go)
-			# Generated file from go:generate stringer
-		;;
         *)
             header="$(head -3 $file)"
             if ! check_file "$header"; then