From 203b83a8cfa585298e660cb2b79594d2a1ad2b6d Mon Sep 17 00:00:00 2001 From: chenzhuoyu Date: Sat, 29 May 2021 00:15:37 +0800 Subject: [PATCH] fix: fix Copyright placements --- .licenserc.yaml | 10 ++++++++++ internal/loader/funcdata_go115.go | 4 ++-- internal/loader/funcdata_go116.go | 4 ++-- internal/loader/funcdata_invalid.go | 4 ++-- internal/native/native_subr_amd64.go | 16 ---------------- 5 files changed, 16 insertions(+), 22 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 08132b9..303ddec 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -7,4 +7,14 @@ header: - '**/*.go' - '**/*.s' + paths-ignore: + - 'ast/asm.s' # empty file + - 'encoder/asm.s' # empty file + - 'internal/caching/asm.s' # empty file + - 'internal/jit/asm.s' # empty file + - 'internal/native/native_amd64.s' # auto-generated by asm2asm + - 'internal/native/native_subr_amd64.go' # auto-generated by asm2asm + - 'internal/resolver/asm.s' # empty file + - 'internal/rt/asm.s' # empty file + comment: on-failure \ No newline at end of file diff --git a/internal/loader/funcdata_go115.go b/internal/loader/funcdata_go115.go index f06f933..45426b3 100644 --- a/internal/loader/funcdata_go115.go +++ b/internal/loader/funcdata_go115.go @@ -1,3 +1,5 @@ +// +build go1.15,!go1.16 + /* * Copyright 2021 ByteDance Inc. * @@ -14,8 +16,6 @@ * limitations under the License. */ -// +build go1.15,!go1.16 - package loader import ( diff --git a/internal/loader/funcdata_go116.go b/internal/loader/funcdata_go116.go index 66d57f5..1c7cdf5 100644 --- a/internal/loader/funcdata_go116.go +++ b/internal/loader/funcdata_go116.go @@ -1,3 +1,5 @@ +// +build go1.16,!go1.17 + /* * Copyright 2021 ByteDance Inc. * @@ -14,8 +16,6 @@ * limitations under the License. */ -// +build go1.16,!go1.17 - package loader import ( diff --git a/internal/loader/funcdata_invalid.go b/internal/loader/funcdata_invalid.go index 292a1b8..3bce59b 100644 --- a/internal/loader/funcdata_invalid.go +++ b/internal/loader/funcdata_invalid.go @@ -1,3 +1,5 @@ +// +build !go1.15 go1.17 + /* * Copyright 2021 ByteDance Inc. * @@ -14,8 +16,6 @@ * limitations under the License. */ -// +build !go1.15 go1.17 - package loader // triggers a compilation error diff --git a/internal/native/native_subr_amd64.go b/internal/native/native_subr_amd64.go index 7589b00..0a4855a 100644 --- a/internal/native/native_subr_amd64.go +++ b/internal/native/native_subr_amd64.go @@ -1,19 +1,3 @@ -/* - * Copyright 2021 ByteDance Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - // +build !noasm !appengine // Code generated by asm2asm, DO NOT EDIT.