From 17d096d8cd7ee637220788bdc43bb44d3a56bb0a Mon Sep 17 00:00:00 2001 From: Jun Futagawa Date: Tue, 23 Jun 2026 22:10:34 +0900 Subject: [PATCH] chore: add SPDX license headers --- README.md | 6 ++++++ cmd/prec/main.go | 3 +++ cmd/precd/main.go | 3 +++ packaging/nfpm/precd.postinstall.sh | 3 +++ packaging/nfpm/precd.postremove.sh | 3 +++ packaging/nfpm/precd_postinstall_script_test.go | 3 +++ packaging/nfpm/precd_postremove_script_test.go | 3 +++ pkg/cli/app.go | 3 +++ pkg/cli/app_test.go | 3 +++ pkg/cli/constants.go | 3 +++ pkg/cli/event_collection.go | 3 +++ pkg/cli/event_collection_test.go | 3 +++ pkg/cli/event_merge.go | 3 +++ pkg/cli/event_merge_test.go | 3 +++ pkg/cli/log_paths.go | 3 +++ pkg/cli/log_paths_test.go | 3 +++ pkg/cli/log_reader.go | 3 +++ pkg/cli/log_reader_test.go | 3 +++ pkg/cli/output_formatter.go | 3 +++ pkg/cli/output_formatter_test.go | 3 +++ pkg/cli/query_filter.go | 3 +++ pkg/cli/query_filter_test.go | 3 +++ pkg/cli/tail.go | 3 +++ pkg/cli/test_helpers_test.go | 3 +++ pkg/collector/collector_linux.go | 3 +++ pkg/collector/collector_linux_test.go | 3 +++ pkg/config/config.go | 3 +++ pkg/config/config_test.go | 3 +++ pkg/events/event.go | 3 +++ pkg/events/event_json.go | 3 +++ pkg/events/event_test.go | 3 +++ pkg/events/source.go | 3 +++ pkg/events/source_test.go | 3 +++ pkg/filter/filter.go | 3 +++ pkg/filter/filter_test.go | 3 +++ pkg/logger/jsonl.go | 3 +++ pkg/logger/jsonl_test.go | 3 +++ pkg/query/filter.go | 3 +++ 38 files changed, 117 insertions(+) diff --git a/README.md b/README.md index 3665189..6fab2b1 100644 --- a/README.md +++ b/README.md @@ -457,3 +457,9 @@ Generated files are stored in `dist/`: ## License Apache-2.0 + +Copyright contributors to the prec project. + +## Author + +Jun Futagawa (jfut) diff --git a/cmd/prec/main.go b/cmd/prec/main.go index 7a03ac0..7527621 100644 --- a/cmd/prec/main.go +++ b/cmd/prec/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package main import ( diff --git a/cmd/precd/main.go b/cmd/precd/main.go index 61c387c..7b711bc 100644 --- a/cmd/precd/main.go +++ b/cmd/precd/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package main import ( diff --git a/packaging/nfpm/precd.postinstall.sh b/packaging/nfpm/precd.postinstall.sh index d1baae7..4ae3b68 100755 --- a/packaging/nfpm/precd.postinstall.sh +++ b/packaging/nfpm/precd.postinstall.sh @@ -1,4 +1,7 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# SPDX-FileCopyrightText: Copyright contributors to the prec project. + set -eu # Create runtime directories required by precd at install time. diff --git a/packaging/nfpm/precd.postremove.sh b/packaging/nfpm/precd.postremove.sh index 5f59d81..80f8405 100755 --- a/packaging/nfpm/precd.postremove.sh +++ b/packaging/nfpm/precd.postremove.sh @@ -1,4 +1,7 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# SPDX-FileCopyrightText: Copyright contributors to the prec project. + set -eu # Refresh systemd unit cache after package removal. diff --git a/packaging/nfpm/precd_postinstall_script_test.go b/packaging/nfpm/precd_postinstall_script_test.go index 794833d..0a57b99 100644 --- a/packaging/nfpm/precd_postinstall_script_test.go +++ b/packaging/nfpm/precd_postinstall_script_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package nfpm import ( diff --git a/packaging/nfpm/precd_postremove_script_test.go b/packaging/nfpm/precd_postremove_script_test.go index 9bd7e28..7792e34 100644 --- a/packaging/nfpm/precd_postremove_script_test.go +++ b/packaging/nfpm/precd_postremove_script_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package nfpm import ( diff --git a/pkg/cli/app.go b/pkg/cli/app.go index 6906143..0c8bfb0 100644 --- a/pkg/cli/app.go +++ b/pkg/cli/app.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/app_test.go b/pkg/cli/app_test.go index 948a51a..eb68386 100644 --- a/pkg/cli/app_test.go +++ b/pkg/cli/app_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/constants.go b/pkg/cli/constants.go index fcefb22..698185a 100644 --- a/pkg/cli/constants.go +++ b/pkg/cli/constants.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import "time" diff --git a/pkg/cli/event_collection.go b/pkg/cli/event_collection.go index e8d13ce..bb25795 100644 --- a/pkg/cli/event_collection.go +++ b/pkg/cli/event_collection.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/event_collection_test.go b/pkg/cli/event_collection_test.go index 42e6b98..39ca6e5 100644 --- a/pkg/cli/event_collection_test.go +++ b/pkg/cli/event_collection_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/event_merge.go b/pkg/cli/event_merge.go index b16d343..2e8ac81 100644 --- a/pkg/cli/event_merge.go +++ b/pkg/cli/event_merge.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import "github.com/jfut/prec/pkg/events" diff --git a/pkg/cli/event_merge_test.go b/pkg/cli/event_merge_test.go index 3595409..6e74080 100644 --- a/pkg/cli/event_merge_test.go +++ b/pkg/cli/event_merge_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/log_paths.go b/pkg/cli/log_paths.go index 6efd336..c9e2354 100644 --- a/pkg/cli/log_paths.go +++ b/pkg/cli/log_paths.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/log_paths_test.go b/pkg/cli/log_paths_test.go index afd483d..a58f584 100644 --- a/pkg/cli/log_paths_test.go +++ b/pkg/cli/log_paths_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/log_reader.go b/pkg/cli/log_reader.go index cdc7ac7..787c80e 100644 --- a/pkg/cli/log_reader.go +++ b/pkg/cli/log_reader.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/log_reader_test.go b/pkg/cli/log_reader_test.go index 640ce62..8c1dfd4 100644 --- a/pkg/cli/log_reader_test.go +++ b/pkg/cli/log_reader_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/output_formatter.go b/pkg/cli/output_formatter.go index 69cd3d2..00e56ac 100644 --- a/pkg/cli/output_formatter.go +++ b/pkg/cli/output_formatter.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/output_formatter_test.go b/pkg/cli/output_formatter_test.go index 412f9c7..c1975e1 100644 --- a/pkg/cli/output_formatter_test.go +++ b/pkg/cli/output_formatter_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/query_filter.go b/pkg/cli/query_filter.go index c6e246d..e3b31ca 100644 --- a/pkg/cli/query_filter.go +++ b/pkg/cli/query_filter.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/query_filter_test.go b/pkg/cli/query_filter_test.go index 3dc86a8..cea3833 100644 --- a/pkg/cli/query_filter_test.go +++ b/pkg/cli/query_filter_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/tail.go b/pkg/cli/tail.go index 7c613af..25064df 100644 --- a/pkg/cli/tail.go +++ b/pkg/cli/tail.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/cli/test_helpers_test.go b/pkg/cli/test_helpers_test.go index 2493de3..b3e7a45 100644 --- a/pkg/cli/test_helpers_test.go +++ b/pkg/cli/test_helpers_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package cli import ( diff --git a/pkg/collector/collector_linux.go b/pkg/collector/collector_linux.go index cb2d8b0..ac3a3db 100644 --- a/pkg/collector/collector_linux.go +++ b/pkg/collector/collector_linux.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + //go:build linux package collector diff --git a/pkg/collector/collector_linux_test.go b/pkg/collector/collector_linux_test.go index a22e9b6..c8e2ee6 100644 --- a/pkg/collector/collector_linux_test.go +++ b/pkg/collector/collector_linux_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + //go:build linux package collector diff --git a/pkg/config/config.go b/pkg/config/config.go index f04cf67..a504f3d 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package config import ( diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 505f524..b5e49cd 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package config import ( diff --git a/pkg/events/event.go b/pkg/events/event.go index 8e3bda9..b205572 100644 --- a/pkg/events/event.go +++ b/pkg/events/event.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package events import ( diff --git a/pkg/events/event_json.go b/pkg/events/event_json.go index 8a6160f..15a4e17 100644 --- a/pkg/events/event_json.go +++ b/pkg/events/event_json.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package events import "encoding/json" diff --git a/pkg/events/event_test.go b/pkg/events/event_test.go index 2108cb3..48ff2ca 100644 --- a/pkg/events/event_test.go +++ b/pkg/events/event_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package events import ( diff --git a/pkg/events/source.go b/pkg/events/source.go index 7f15383..a1b2598 100644 --- a/pkg/events/source.go +++ b/pkg/events/source.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package events import ( diff --git a/pkg/events/source_test.go b/pkg/events/source_test.go index e1308af..9e79d26 100644 --- a/pkg/events/source_test.go +++ b/pkg/events/source_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package events import "testing" diff --git a/pkg/filter/filter.go b/pkg/filter/filter.go index 9ebddfc..1e167ef 100644 --- a/pkg/filter/filter.go +++ b/pkg/filter/filter.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package filter import ( diff --git a/pkg/filter/filter_test.go b/pkg/filter/filter_test.go index 46e458b..4213d5e 100644 --- a/pkg/filter/filter_test.go +++ b/pkg/filter/filter_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package filter import ( diff --git a/pkg/logger/jsonl.go b/pkg/logger/jsonl.go index 9a0aa98..082bec4 100644 --- a/pkg/logger/jsonl.go +++ b/pkg/logger/jsonl.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package logger import ( diff --git a/pkg/logger/jsonl_test.go b/pkg/logger/jsonl_test.go index d38f747..38986d8 100644 --- a/pkg/logger/jsonl_test.go +++ b/pkg/logger/jsonl_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package logger import ( diff --git a/pkg/query/filter.go b/pkg/query/filter.go index 124f50f..98ac16a 100644 --- a/pkg/query/filter.go +++ b/pkg/query/filter.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright contributors to the prec project. + package query import (