From d85fb140ad75ae48e9ddd734757566675fa172f2 Mon Sep 17 00:00:00 2001 From: Yesudeep Mangalapilly Date: Fri, 31 Jan 2025 21:49:59 -0800 Subject: [PATCH] chore: add spdx license identifier to all go source code --- go/ai/document.go | 2 ++ go/ai/document_test.go | 3 +- go/ai/embedder.go | 3 +- go/ai/gen.go | 3 +- go/ai/generate.go | 3 +- go/ai/generator_test.go | 3 +- go/ai/prompt.go | 3 +- go/ai/request_helpers.go | 3 +- go/ai/retriever.go | 3 +- go/ai/tools.go | 3 +- go/core/action.go | 3 +- go/core/action_test.go | 3 +- go/core/core.go | 4 ++- go/core/file_flow_state_store.go | 3 +- go/core/flow_state_store.go | 3 +- go/core/logger/logger.go | 28 ++++++++++--------- go/core/tracing/milliseconds.go | 6 ++-- go/core/tracing/milliseconds_test.go | 3 +- go/core/tracing/store.go | 3 +- go/core/tracing/store_test.go | 3 +- go/core/tracing/telemetry.go | 3 +- go/core/tracing/trace_server_exporter.go | 3 +- go/core/tracing/trace_server_exporter_test.go | 3 +- go/core/tracing/tracing.go | 6 ++-- go/core/tracing/tracing_test.go | 3 +- go/genkit/conformance_test.go | 3 +- go/genkit/flow.go | 3 +- go/genkit/flow_test.go | 3 +- go/genkit/gen.go | 3 +- go/genkit/genkit.go | 6 ++-- go/genkit/genkit_test.go | 3 +- go/genkit/servers.go | 4 ++- go/genkit/servers_test.go | 3 +- go/internal/action/action.go | 3 +- go/internal/atype/atype.go | 6 ++-- go/internal/base/context_key.go | 3 +- go/internal/base/json.go | 3 +- go/internal/base/json_test.go | 3 +- go/internal/base/misc.go | 3 +- go/internal/base/validation.go | 3 +- go/internal/cmd/copy/copy.go | 6 ++-- go/internal/cmd/copy/copy_test.go | 3 +- go/internal/cmd/jsonschemagen/jsonschema.go | 3 +- .../cmd/jsonschemagen/jsonschema_test.go | 3 +- .../cmd/jsonschemagen/jsonschemagen.go | 9 ++++-- .../cmd/jsonschemagen/jsonschemagen_test.go | 3 +- go/internal/cmd/weave/weave.go | 6 ++-- go/internal/doc-snippets/doc.go | 3 +- go/internal/doc-snippets/dotprompt.go | 3 +- go/internal/doc-snippets/flows.go | 3 +- go/internal/doc-snippets/gcp.go | 3 +- go/internal/doc-snippets/googleai.go | 3 +- go/internal/doc-snippets/init/main.go | 3 +- .../doc-snippets/modelplugin/modelplugin.go | 3 +- go/internal/doc-snippets/models.go | 3 +- go/internal/doc-snippets/ollama.go | 3 +- go/internal/doc-snippets/pinecone.go | 3 +- go/internal/doc-snippets/plugin/plugin.go | 3 +- go/internal/doc-snippets/prompts.go | 3 +- go/internal/doc-snippets/rag/main.go | 3 +- go/internal/doc-snippets/rag/pdf/pdf.go | 3 +- .../rag/textsplitter/textsplitter.go | 3 +- .../doc-snippets/telemetryplugin/exporters.go | 3 +- .../telemetryplugin/telemetryplugin.go | 3 +- go/internal/doc-snippets/vertexai.go | 3 +- go/internal/fakeembedder/fakeembedder.go | 3 +- go/internal/fakeembedder/fakeembedder_test.go | 3 +- go/internal/metrics/metrics.go | 3 +- go/internal/registry/registry.go | 3 +- go/internal/version.go | 3 +- go/plugins/dotprompt/dotprompt.go | 3 +- go/plugins/dotprompt/dotprompt_test.go | 3 +- go/plugins/dotprompt/genkit.go | 3 +- go/plugins/dotprompt/genkit_test.go | 3 +- go/plugins/dotprompt/picoschema.go | 3 +- go/plugins/dotprompt/picoschema_test.go | 3 +- go/plugins/dotprompt/render.go | 3 +- go/plugins/dotprompt/render_test.go | 3 +- go/plugins/firebase/auth.go | 3 +- go/plugins/firebase/auth_test.go | 3 +- go/plugins/firebase/firebase.go | 3 +- go/plugins/googleai/googleai.go | 3 +- go/plugins/googleai/googleai_test.go | 3 +- go/plugins/googlecloud/googlecloud.go | 3 +- go/plugins/googlecloud/googlecloud_test.go | 3 +- go/plugins/googlecloud/slog_handler.go | 3 +- go/plugins/googlecloud/slog_handler_test.go | 3 +- go/plugins/internal/gemini/gemini.go | 3 +- go/plugins/internal/uri/uri.go | 3 +- go/plugins/internal/uri/uri_test.go | 3 +- go/plugins/localvec/localvec.go | 3 +- go/plugins/localvec/localvec_test.go | 3 +- go/plugins/ollama/embed.go | 3 +- go/plugins/ollama/embed_test.go | 3 +- go/plugins/ollama/ollama.go | 3 +- go/plugins/ollama/ollama_live_test.go | 3 +- go/plugins/ollama/ollama_test.go | 3 +- go/plugins/pinecone/genkit.go | 3 +- go/plugins/pinecone/genkit_test.go | 3 +- go/plugins/pinecone/pinecone.go | 3 +- go/plugins/pinecone/pinecone_test.go | 3 +- go/plugins/vertexai/embed.go | 3 +- go/plugins/vertexai/vertexai.go | 3 +- go/plugins/vertexai/vertexai_test.go | 3 +- go/plugins/weaviate/weaviate.go | 3 +- go/plugins/weaviate/weaviate_test.go | 3 +- go/samples/coffee-shop/main.go | 3 +- go/samples/firebase-auth/main.go | 3 +- go/samples/flow-sample1/main.go | 3 +- go/samples/menu/main.go | 3 +- go/samples/menu/s01.go | 3 +- go/samples/menu/s02.go | 3 +- go/samples/menu/s03.go | 3 +- go/samples/menu/s04.go | 3 +- go/samples/menu/s05.go | 3 +- go/samples/pgvector/main.go | 3 +- go/samples/rag/main.go | 3 +- go/tests/api_test.go | 3 +- go/tests/test_app/main.go | 3 +- go/tests/utils/utils.go | 3 +- 120 files changed, 271 insertions(+), 139 deletions(-) diff --git a/go/ai/document.go b/go/ai/document.go index e2dec4580..e7437f392 100644 --- a/go/ai/document.go +++ b/go/ai/document.go @@ -11,6 +11,8 @@ // 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. +// +// SPDX-License-Identifier: Apache-2.0 package ai diff --git a/go/ai/document_test.go b/go/ai/document_test.go index 49345c4a4..3ef4a74f1 100644 --- a/go/ai/document_test.go +++ b/go/ai/document_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ai import ( diff --git a/go/ai/embedder.go b/go/ai/embedder.go index da3dae507..f0fa23a0e 100644 --- a/go/ai/embedder.go +++ b/go/ai/embedder.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ai import ( diff --git a/go/ai/gen.go b/go/ai/gen.go index 409e4f096..1c890a43b 100644 --- a/go/ai/gen.go +++ b/go/ai/gen.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // This file was generated by jsonschemagen. DO NOT EDIT. package ai diff --git a/go/ai/generate.go b/go/ai/generate.go index 5a02b03ca..6d9f33bfb 100644 --- a/go/ai/generate.go +++ b/go/ai/generate.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ai import ( diff --git a/go/ai/generator_test.go b/go/ai/generator_test.go index 0c5796b92..5417e7862 100644 --- a/go/ai/generator_test.go +++ b/go/ai/generator_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ai import ( diff --git a/go/ai/prompt.go b/go/ai/prompt.go index 7643997e3..4b44b53c8 100644 --- a/go/ai/prompt.go +++ b/go/ai/prompt.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ai import ( diff --git a/go/ai/request_helpers.go b/go/ai/request_helpers.go index 3632e5c6a..df5d06f45 100644 --- a/go/ai/request_helpers.go +++ b/go/ai/request_helpers.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ai // NewModelRequest create a new ModelRequest with provided config and diff --git a/go/ai/retriever.go b/go/ai/retriever.go index a239eb755..94094e9c3 100644 --- a/go/ai/retriever.go +++ b/go/ai/retriever.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ai import ( diff --git a/go/ai/tools.go b/go/ai/tools.go index 2cae9db65..675e3cf31 100644 --- a/go/ai/tools.go +++ b/go/ai/tools.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ai import ( diff --git a/go/core/action.go b/go/core/action.go index b6900f27e..1db6640f2 100644 --- a/go/core/action.go +++ b/go/core/action.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package core import ( diff --git a/go/core/action_test.go b/go/core/action_test.go index bdb64db0c..9dd9c6cf8 100644 --- a/go/core/action_test.go +++ b/go/core/action_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package core import ( diff --git a/go/core/core.go b/go/core/core.go index 5895b8e92..9fce05d2c 100644 --- a/go/core/core.go +++ b/go/core/core.go @@ -11,7 +11,9 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // Run the npm script that generates JSON Schemas from the zod types // in the *.ts files. It writes the result to genkit-tools/genkit-schema.json //go:generate npm --prefix ../../genkit-tools run export:schemas diff --git a/go/core/file_flow_state_store.go b/go/core/file_flow_state_store.go index d01993cd3..896dd5d72 100644 --- a/go/core/file_flow_state_store.go +++ b/go/core/file_flow_state_store.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package core import ( diff --git a/go/core/flow_state_store.go b/go/core/flow_state_store.go index b5a2abc4c..e01e53db2 100644 --- a/go/core/flow_state_store.go +++ b/go/core/flow_state_store.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package core import ( diff --git a/go/core/logger/logger.go b/go/core/logger/logger.go index 11f37014e..dde953b25 100644 --- a/go/core/logger/logger.go +++ b/go/core/logger/logger.go @@ -4,14 +4,16 @@ // 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 +// 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // Package logger provides a context-scoped slog.Logger. package logger @@ -25,27 +27,27 @@ import ( ) var ( - logLevel = slog.LevelDebug - mu sync.RWMutex + logLevel = slog.LevelDebug + mu sync.RWMutex loggerKey = base.NewContextKey[*slog.Logger]() ) // SetLevel sets the global log level func SetLevel(level slog.Level) { - mu.Lock() - defer mu.Unlock() - logLevel = level + mu.Lock() + defer mu.Unlock() + logLevel = level h := slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{ - Level: logLevel, - })) - slog.SetDefault(h) + Level: logLevel, + })) + slog.SetDefault(h) } // GetLevel gets the current global log level func GetLevel() slog.Level { - mu.RLock() - defer mu.RUnlock() - return logLevel + mu.RLock() + defer mu.RUnlock() + return logLevel } // FromContext returns the Logger in ctx, or the default Logger diff --git a/go/core/tracing/milliseconds.go b/go/core/tracing/milliseconds.go index 79315cf13..c890a7b26 100644 --- a/go/core/tracing/milliseconds.go +++ b/go/core/tracing/milliseconds.go @@ -4,14 +4,16 @@ // 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 +// 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // Package gtime provides time functionality for Go Genkit. package tracing diff --git a/go/core/tracing/milliseconds_test.go b/go/core/tracing/milliseconds_test.go index 49694ef3f..0125796d6 100644 --- a/go/core/tracing/milliseconds_test.go +++ b/go/core/tracing/milliseconds_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package tracing import ( diff --git a/go/core/tracing/store.go b/go/core/tracing/store.go index fbbab092b..19b675e81 100644 --- a/go/core/tracing/store.go +++ b/go/core/tracing/store.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package tracing // Data is information about a trace. diff --git a/go/core/tracing/store_test.go b/go/core/tracing/store_test.go index 44ab23296..67b2b51c7 100644 --- a/go/core/tracing/store_test.go +++ b/go/core/tracing/store_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package tracing import ( diff --git a/go/core/tracing/telemetry.go b/go/core/tracing/telemetry.go index 6025a54a2..8af20ea9c 100644 --- a/go/core/tracing/telemetry.go +++ b/go/core/tracing/telemetry.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package tracing import ( diff --git a/go/core/tracing/trace_server_exporter.go b/go/core/tracing/trace_server_exporter.go index e33e4a504..10992cf2c 100644 --- a/go/core/tracing/trace_server_exporter.go +++ b/go/core/tracing/trace_server_exporter.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package tracing import ( diff --git a/go/core/tracing/trace_server_exporter_test.go b/go/core/tracing/trace_server_exporter_test.go index 487b00f92..a6e7adf72 100644 --- a/go/core/tracing/trace_server_exporter_test.go +++ b/go/core/tracing/trace_server_exporter_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package tracing import ( diff --git a/go/core/tracing/tracing.go b/go/core/tracing/tracing.go index cae0bf161..b46753189 100644 --- a/go/core/tracing/tracing.go +++ b/go/core/tracing/tracing.go @@ -4,14 +4,16 @@ // 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 +// 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // The tracing package provides support for execution traces. package tracing diff --git a/go/core/tracing/tracing_test.go b/go/core/tracing/tracing_test.go index 87577b195..665e5dacf 100644 --- a/go/core/tracing/tracing_test.go +++ b/go/core/tracing/tracing_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package tracing import ( diff --git a/go/genkit/conformance_test.go b/go/genkit/conformance_test.go index c7c1c3c5a..44e0dfd24 100644 --- a/go/genkit/conformance_test.go +++ b/go/genkit/conformance_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package genkit import ( diff --git a/go/genkit/flow.go b/go/genkit/flow.go index 52ede66c8..8e9dcd970 100644 --- a/go/genkit/flow.go +++ b/go/genkit/flow.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package genkit import ( diff --git a/go/genkit/flow_test.go b/go/genkit/flow_test.go index 589918229..fa1703108 100644 --- a/go/genkit/flow_test.go +++ b/go/genkit/flow_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package genkit import ( diff --git a/go/genkit/gen.go b/go/genkit/gen.go index 325b101ee..fce5fc611 100644 --- a/go/genkit/gen.go +++ b/go/genkit/gen.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // This file was generated by jsonschemagen. DO NOT EDIT. package genkit diff --git a/go/genkit/genkit.go b/go/genkit/genkit.go index 122edd376..3af01da79 100644 --- a/go/genkit/genkit.go +++ b/go/genkit/genkit.go @@ -4,14 +4,16 @@ // 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 +// 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // Package genkit provides Genkit functionality for application developers. package genkit diff --git a/go/genkit/genkit_test.go b/go/genkit/genkit_test.go index 104ab2fe1..b68838f59 100644 --- a/go/genkit/genkit_test.go +++ b/go/genkit/genkit_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package genkit import ( diff --git a/go/genkit/servers.go b/go/genkit/servers.go index 9dd175328..bdf0a0596 100644 --- a/go/genkit/servers.go +++ b/go/genkit/servers.go @@ -11,7 +11,9 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // This file implements production and development servers. // // The genkit CLI sends requests to the development server. diff --git a/go/genkit/servers_test.go b/go/genkit/servers_test.go index 09378a931..7364857f1 100644 --- a/go/genkit/servers_test.go +++ b/go/genkit/servers_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package genkit import ( diff --git a/go/internal/action/action.go b/go/internal/action/action.go index ddd0119b5..1398c1cd1 100644 --- a/go/internal/action/action.go +++ b/go/internal/action/action.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package action import ( diff --git a/go/internal/atype/atype.go b/go/internal/atype/atype.go index f5b48c207..8a50780ac 100644 --- a/go/internal/atype/atype.go +++ b/go/internal/atype/atype.go @@ -4,14 +4,16 @@ // 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 +// 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // Package atype provides types for Genkit actions. package atype diff --git a/go/internal/base/context_key.go b/go/internal/base/context_key.go index 38f476f77..0cb585212 100644 --- a/go/internal/base/context_key.go +++ b/go/internal/base/context_key.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package base import ( diff --git a/go/internal/base/json.go b/go/internal/base/json.go index 168f34eff..9c82c1c4b 100644 --- a/go/internal/base/json.go +++ b/go/internal/base/json.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package base import ( diff --git a/go/internal/base/json_test.go b/go/internal/base/json_test.go index 6387acb50..ad43bdaa0 100644 --- a/go/internal/base/json_test.go +++ b/go/internal/base/json_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package base import ( diff --git a/go/internal/base/misc.go b/go/internal/base/misc.go index 01b0fa840..83ed3080d 100644 --- a/go/internal/base/misc.go +++ b/go/internal/base/misc.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package base import ( diff --git a/go/internal/base/validation.go b/go/internal/base/validation.go index 9510fd68e..c414544b1 100644 --- a/go/internal/base/validation.go +++ b/go/internal/base/validation.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package base import ( diff --git a/go/internal/cmd/copy/copy.go b/go/internal/cmd/copy/copy.go index f6192a320..850f832ef 100644 --- a/go/internal/cmd/copy/copy.go +++ b/go/internal/cmd/copy/copy.go @@ -4,14 +4,16 @@ // 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 +// 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // copy is a tool for copying parts of files. // It reads a set of source files, collecting named sequences of lines to copy // to a destination file. diff --git a/go/internal/cmd/copy/copy_test.go b/go/internal/cmd/copy/copy_test.go index 24cabaa0f..9ceb412b9 100644 --- a/go/internal/cmd/copy/copy_test.go +++ b/go/internal/cmd/copy/copy_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/internal/cmd/jsonschemagen/jsonschema.go b/go/internal/cmd/jsonschemagen/jsonschema.go index 183c5e4cf..61de0d832 100644 --- a/go/internal/cmd/jsonschemagen/jsonschema.go +++ b/go/internal/cmd/jsonschemagen/jsonschema.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/internal/cmd/jsonschemagen/jsonschema_test.go b/go/internal/cmd/jsonschemagen/jsonschema_test.go index 1fb4c5ec7..1a9bacd19 100644 --- a/go/internal/cmd/jsonschemagen/jsonschema_test.go +++ b/go/internal/cmd/jsonschemagen/jsonschema_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/internal/cmd/jsonschemagen/jsonschemagen.go b/go/internal/cmd/jsonschemagen/jsonschemagen.go index d5dd2cb0b..d9d1befb4 100644 --- a/go/internal/cmd/jsonschemagen/jsonschemagen.go +++ b/go/internal/cmd/jsonschemagen/jsonschemagen.go @@ -4,14 +4,16 @@ // 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 +// 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // A simple, self-contained code generator for JSON Schema. // It converts a JSON Schema to equivalent Go types. package main @@ -246,7 +248,8 @@ const license = ` // 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. -` +// +// SPDX-License-Identifier: Apache-2.0` type generator struct { pkgName string diff --git a/go/internal/cmd/jsonschemagen/jsonschemagen_test.go b/go/internal/cmd/jsonschemagen/jsonschemagen_test.go index 7a0dabe4d..470be732c 100644 --- a/go/internal/cmd/jsonschemagen/jsonschemagen_test.go +++ b/go/internal/cmd/jsonschemagen/jsonschemagen_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/internal/cmd/weave/weave.go b/go/internal/cmd/weave/weave.go index 9f69560e2..980c7214a 100644 --- a/go/internal/cmd/weave/weave.go +++ b/go/internal/cmd/weave/weave.go @@ -4,14 +4,16 @@ // 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 +// 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. - +// +// SPDX-License-Identifier: Apache-2.0 +// // The weave command is a simple preprocessor for markdown files. // It builds a table of contents and processes %include directives. // diff --git a/go/internal/doc-snippets/doc.go b/go/internal/doc-snippets/doc.go index 9e9f9d1b9..2f3d522c9 100644 --- a/go/internal/doc-snippets/doc.go +++ b/go/internal/doc-snippets/doc.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // Package snippets contains snippets that are incorporated into // documentation (see the docs-go directory under the repo root). package snippets diff --git a/go/internal/doc-snippets/dotprompt.go b/go/internal/doc-snippets/dotprompt.go index 8c6cff48f..dbb10ead6 100644 --- a/go/internal/doc-snippets/dotprompt.go +++ b/go/internal/doc-snippets/dotprompt.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/doc-snippets/flows.go b/go/internal/doc-snippets/flows.go index cfc45894f..cc2c29ad2 100644 --- a/go/internal/doc-snippets/flows.go +++ b/go/internal/doc-snippets/flows.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/doc-snippets/gcp.go b/go/internal/doc-snippets/gcp.go index 1efee223c..36d75594a 100644 --- a/go/internal/doc-snippets/gcp.go +++ b/go/internal/doc-snippets/gcp.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/doc-snippets/googleai.go b/go/internal/doc-snippets/googleai.go index ef9cee755..1c36ec059 100644 --- a/go/internal/doc-snippets/googleai.go +++ b/go/internal/doc-snippets/googleai.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/doc-snippets/init/main.go b/go/internal/doc-snippets/init/main.go index b68cf377e..9ac461b23 100644 --- a/go/internal/doc-snippets/init/main.go +++ b/go/internal/doc-snippets/init/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // [START main] package main diff --git a/go/internal/doc-snippets/modelplugin/modelplugin.go b/go/internal/doc-snippets/modelplugin/modelplugin.go index cb14c02eb..6ccf7a686 100644 --- a/go/internal/doc-snippets/modelplugin/modelplugin.go +++ b/go/internal/doc-snippets/modelplugin/modelplugin.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package modelplugin import ( diff --git a/go/internal/doc-snippets/models.go b/go/internal/doc-snippets/models.go index 97709c89c..b4a3b472c 100644 --- a/go/internal/doc-snippets/models.go +++ b/go/internal/doc-snippets/models.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/doc-snippets/ollama.go b/go/internal/doc-snippets/ollama.go index 76afebc02..2dbee1144 100644 --- a/go/internal/doc-snippets/ollama.go +++ b/go/internal/doc-snippets/ollama.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/doc-snippets/pinecone.go b/go/internal/doc-snippets/pinecone.go index 9995c93c2..a65cad4de 100644 --- a/go/internal/doc-snippets/pinecone.go +++ b/go/internal/doc-snippets/pinecone.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/doc-snippets/plugin/plugin.go b/go/internal/doc-snippets/plugin/plugin.go index 7a0fdbe7b..eaddb9de1 100644 --- a/go/internal/doc-snippets/plugin/plugin.go +++ b/go/internal/doc-snippets/plugin/plugin.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package plugin import ( diff --git a/go/internal/doc-snippets/prompts.go b/go/internal/doc-snippets/prompts.go index c8bb0e3a3..eab782e5e 100644 --- a/go/internal/doc-snippets/prompts.go +++ b/go/internal/doc-snippets/prompts.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/doc-snippets/rag/main.go b/go/internal/doc-snippets/rag/main.go index 638100571..99d074c1e 100644 --- a/go/internal/doc-snippets/rag/main.go +++ b/go/internal/doc-snippets/rag/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package rag import ( diff --git a/go/internal/doc-snippets/rag/pdf/pdf.go b/go/internal/doc-snippets/rag/pdf/pdf.go index 3cb2c48d8..c542a322c 100644 --- a/go/internal/doc-snippets/rag/pdf/pdf.go +++ b/go/internal/doc-snippets/rag/pdf/pdf.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package pdf import ( diff --git a/go/internal/doc-snippets/rag/textsplitter/textsplitter.go b/go/internal/doc-snippets/rag/textsplitter/textsplitter.go index c827cd2e8..8b68f3eb2 100644 --- a/go/internal/doc-snippets/rag/textsplitter/textsplitter.go +++ b/go/internal/doc-snippets/rag/textsplitter/textsplitter.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package textsplitter type Splitter struct{} diff --git a/go/internal/doc-snippets/telemetryplugin/exporters.go b/go/internal/doc-snippets/telemetryplugin/exporters.go index d0b0fca4b..4da64474f 100644 --- a/go/internal/doc-snippets/telemetryplugin/exporters.go +++ b/go/internal/doc-snippets/telemetryplugin/exporters.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package telemetryplugin import ( diff --git a/go/internal/doc-snippets/telemetryplugin/telemetryplugin.go b/go/internal/doc-snippets/telemetryplugin/telemetryplugin.go index 855ca7cc4..bc2c48db9 100644 --- a/go/internal/doc-snippets/telemetryplugin/telemetryplugin.go +++ b/go/internal/doc-snippets/telemetryplugin/telemetryplugin.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package telemetryplugin import ( diff --git a/go/internal/doc-snippets/vertexai.go b/go/internal/doc-snippets/vertexai.go index d09f412e4..0620a773b 100644 --- a/go/internal/doc-snippets/vertexai.go +++ b/go/internal/doc-snippets/vertexai.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package snippets import ( diff --git a/go/internal/fakeembedder/fakeembedder.go b/go/internal/fakeembedder/fakeembedder.go index 11fd2e259..858e07a4e 100644 --- a/go/internal/fakeembedder/fakeembedder.go +++ b/go/internal/fakeembedder/fakeembedder.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // Package fakeembedder provides a fake implementation of // genkit.Embedder for testing purposes. // The caller must register the values that the fake embedder should diff --git a/go/internal/fakeembedder/fakeembedder_test.go b/go/internal/fakeembedder/fakeembedder_test.go index c01d037d4..a58308c9f 100644 --- a/go/internal/fakeembedder/fakeembedder_test.go +++ b/go/internal/fakeembedder/fakeembedder_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package fakeembedder import ( diff --git a/go/internal/metrics/metrics.go b/go/internal/metrics/metrics.go index a37a547b3..54bb10801 100644 --- a/go/internal/metrics/metrics.go +++ b/go/internal/metrics/metrics.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package metrics import ( diff --git a/go/internal/registry/registry.go b/go/internal/registry/registry.go index 804898a0f..d6dd9d2cd 100644 --- a/go/internal/registry/registry.go +++ b/go/internal/registry/registry.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package registry import ( diff --git a/go/internal/version.go b/go/internal/version.go index d1cc79ca5..47571093f 100644 --- a/go/internal/version.go +++ b/go/internal/version.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package internal // Version is the current tagged release of this module. diff --git a/go/plugins/dotprompt/dotprompt.go b/go/plugins/dotprompt/dotprompt.go index e667aa58d..f6e42bb43 100644 --- a/go/plugins/dotprompt/dotprompt.go +++ b/go/plugins/dotprompt/dotprompt.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // Package dotprompt parses and renders dotprompt files. package dotprompt diff --git a/go/plugins/dotprompt/dotprompt_test.go b/go/plugins/dotprompt/dotprompt_test.go index f177409da..5696e4df5 100644 --- a/go/plugins/dotprompt/dotprompt_test.go +++ b/go/plugins/dotprompt/dotprompt_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package dotprompt import ( diff --git a/go/plugins/dotprompt/genkit.go b/go/plugins/dotprompt/genkit.go index 520878934..a2d45a79c 100644 --- a/go/plugins/dotprompt/genkit.go +++ b/go/plugins/dotprompt/genkit.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package dotprompt import ( diff --git a/go/plugins/dotprompt/genkit_test.go b/go/plugins/dotprompt/genkit_test.go index 840e2e871..1816a3116 100644 --- a/go/plugins/dotprompt/genkit_test.go +++ b/go/plugins/dotprompt/genkit_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package dotprompt import ( diff --git a/go/plugins/dotprompt/picoschema.go b/go/plugins/dotprompt/picoschema.go index ca5b7c00c..d0e940af6 100644 --- a/go/plugins/dotprompt/picoschema.go +++ b/go/plugins/dotprompt/picoschema.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package dotprompt import ( diff --git a/go/plugins/dotprompt/picoschema_test.go b/go/plugins/dotprompt/picoschema_test.go index f25d5f6b1..282ac4c92 100644 --- a/go/plugins/dotprompt/picoschema_test.go +++ b/go/plugins/dotprompt/picoschema_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package dotprompt import ( diff --git a/go/plugins/dotprompt/render.go b/go/plugins/dotprompt/render.go index 98e712e91..398896535 100644 --- a/go/plugins/dotprompt/render.go +++ b/go/plugins/dotprompt/render.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package dotprompt import ( diff --git a/go/plugins/dotprompt/render_test.go b/go/plugins/dotprompt/render_test.go index f85b9c259..3f0a86368 100644 --- a/go/plugins/dotprompt/render_test.go +++ b/go/plugins/dotprompt/render_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package dotprompt import ( diff --git a/go/plugins/firebase/auth.go b/go/plugins/firebase/auth.go index de27795a6..c46a90e43 100644 --- a/go/plugins/firebase/auth.go +++ b/go/plugins/firebase/auth.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package firebase import ( diff --git a/go/plugins/firebase/auth_test.go b/go/plugins/firebase/auth_test.go index 6bd566064..3fae5a2f1 100644 --- a/go/plugins/firebase/auth_test.go +++ b/go/plugins/firebase/auth_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package firebase import ( diff --git a/go/plugins/firebase/firebase.go b/go/plugins/firebase/firebase.go index e2f4a85b4..40e68b475 100644 --- a/go/plugins/firebase/firebase.go +++ b/go/plugins/firebase/firebase.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package firebase import ( diff --git a/go/plugins/googleai/googleai.go b/go/plugins/googleai/googleai.go index f0e98fc50..aa03aa112 100644 --- a/go/plugins/googleai/googleai.go +++ b/go/plugins/googleai/googleai.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // Parts of this file are copied into vertexai, because the code is identical // except for the import path of the Gemini SDK. //go:generate go run ../../internal/cmd/copy -dest ../vertexai googleai.go diff --git a/go/plugins/googleai/googleai_test.go b/go/plugins/googleai/googleai_test.go index 5ba1e12dc..a91955b90 100644 --- a/go/plugins/googleai/googleai_test.go +++ b/go/plugins/googleai/googleai_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package googleai_test import ( diff --git a/go/plugins/googlecloud/googlecloud.go b/go/plugins/googlecloud/googlecloud.go index a2ccadc8c..caf1f3765 100644 --- a/go/plugins/googlecloud/googlecloud.go +++ b/go/plugins/googlecloud/googlecloud.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // The googlecloud package supports telemetry (tracing, metrics and logging) using // Google Cloud services. package googlecloud diff --git a/go/plugins/googlecloud/googlecloud_test.go b/go/plugins/googlecloud/googlecloud_test.go index 22a46b28b..8b79630f8 100644 --- a/go/plugins/googlecloud/googlecloud_test.go +++ b/go/plugins/googlecloud/googlecloud_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // The googlecloud package supports telemetry (tracing , metrics and logging) using // Google Cloud services. package googlecloud diff --git a/go/plugins/googlecloud/slog_handler.go b/go/plugins/googlecloud/slog_handler.go index 7c644b0cd..df96f8ab9 100644 --- a/go/plugins/googlecloud/slog_handler.go +++ b/go/plugins/googlecloud/slog_handler.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // The googlecloud package supports telemetry (tracing, metrics and logging) using // Google Cloud services. package googlecloud diff --git a/go/plugins/googlecloud/slog_handler_test.go b/go/plugins/googlecloud/slog_handler_test.go index 7feb3eb01..03471676a 100644 --- a/go/plugins/googlecloud/slog_handler_test.go +++ b/go/plugins/googlecloud/slog_handler_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // The googlecloud package supports telemetry (tracing, metrics and logging) using // Google Cloud services. package googlecloud diff --git a/go/plugins/internal/gemini/gemini.go b/go/plugins/internal/gemini/gemini.go index 9ede1b8f0..bc0a8c0a7 100644 --- a/go/plugins/internal/gemini/gemini.go +++ b/go/plugins/internal/gemini/gemini.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // Package gemini contains code that is common to both the googleai and vertexai plugins. // Most most cannot be shared in this way because the import paths are different. package gemini diff --git a/go/plugins/internal/uri/uri.go b/go/plugins/internal/uri/uri.go index 788e7d346..658272f05 100644 --- a/go/plugins/internal/uri/uri.go +++ b/go/plugins/internal/uri/uri.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // Package uri extracts the content-type and data from a media part. // This is used by the googleai and vertexai plugins. package uri diff --git a/go/plugins/internal/uri/uri_test.go b/go/plugins/internal/uri/uri_test.go index 8151f9a7a..8549bea8d 100644 --- a/go/plugins/internal/uri/uri_test.go +++ b/go/plugins/internal/uri/uri_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package uri import ( diff --git a/go/plugins/localvec/localvec.go b/go/plugins/localvec/localvec.go index f0858f892..09c0dcbba 100644 --- a/go/plugins/localvec/localvec.go +++ b/go/plugins/localvec/localvec.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // Package localvec is a local vector database for development and testing. // The database is stored in a file in the local file system. // Production code should use a real vector database. diff --git a/go/plugins/localvec/localvec_test.go b/go/plugins/localvec/localvec_test.go index a479d27fe..0468994a8 100644 --- a/go/plugins/localvec/localvec_test.go +++ b/go/plugins/localvec/localvec_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package localvec import ( diff --git a/go/plugins/ollama/embed.go b/go/plugins/ollama/embed.go index b6d3cf2ef..a40472980 100644 --- a/go/plugins/ollama/embed.go +++ b/go/plugins/ollama/embed.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ollama import ( diff --git a/go/plugins/ollama/embed_test.go b/go/plugins/ollama/embed_test.go index d5c0190a4..a1faee266 100644 --- a/go/plugins/ollama/embed_test.go +++ b/go/plugins/ollama/embed_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ollama import ( diff --git a/go/plugins/ollama/ollama.go b/go/plugins/ollama/ollama.go index 7d1bad962..252bd3f78 100644 --- a/go/plugins/ollama/ollama.go +++ b/go/plugins/ollama/ollama.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ollama import ( diff --git a/go/plugins/ollama/ollama_live_test.go b/go/plugins/ollama/ollama_live_test.go index ccce9c537..922e3ec42 100644 --- a/go/plugins/ollama/ollama_live_test.go +++ b/go/plugins/ollama/ollama_live_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ollama_test import ( diff --git a/go/plugins/ollama/ollama_test.go b/go/plugins/ollama/ollama_test.go index a3cc591e6..3e63c9ac8 100644 --- a/go/plugins/ollama/ollama_test.go +++ b/go/plugins/ollama/ollama_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package ollama import ( diff --git a/go/plugins/pinecone/genkit.go b/go/plugins/pinecone/genkit.go index ab946b3c4..6c4743bac 100644 --- a/go/plugins/pinecone/genkit.go +++ b/go/plugins/pinecone/genkit.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package pinecone import ( diff --git a/go/plugins/pinecone/genkit_test.go b/go/plugins/pinecone/genkit_test.go index d032dc281..b2ec963c7 100644 --- a/go/plugins/pinecone/genkit_test.go +++ b/go/plugins/pinecone/genkit_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package pinecone import ( diff --git a/go/plugins/pinecone/pinecone.go b/go/plugins/pinecone/pinecone.go index e5a68f4e1..fc06f7313 100644 --- a/go/plugins/pinecone/pinecone.go +++ b/go/plugins/pinecone/pinecone.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // Package pinecone implements a genkit plugin for the Pinecone vector // database. This defines an indexer and a retriever. // diff --git a/go/plugins/pinecone/pinecone_test.go b/go/plugins/pinecone/pinecone_test.go index 5f5f8fdc3..aee051a69 100644 --- a/go/plugins/pinecone/pinecone_test.go +++ b/go/plugins/pinecone/pinecone_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package pinecone import ( diff --git a/go/plugins/vertexai/embed.go b/go/plugins/vertexai/embed.go index ae5bd5bed..03c8a446b 100644 --- a/go/plugins/vertexai/embed.go +++ b/go/plugins/vertexai/embed.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package vertexai import ( diff --git a/go/plugins/vertexai/vertexai.go b/go/plugins/vertexai/vertexai.go index 3cb95e2c4..f3a688101 100644 --- a/go/plugins/vertexai/vertexai.go +++ b/go/plugins/vertexai/vertexai.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package vertexai import ( diff --git a/go/plugins/vertexai/vertexai_test.go b/go/plugins/vertexai/vertexai_test.go index fd322ee9e..cedcb2866 100644 --- a/go/plugins/vertexai/vertexai_test.go +++ b/go/plugins/vertexai/vertexai_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package vertexai_test import ( diff --git a/go/plugins/weaviate/weaviate.go b/go/plugins/weaviate/weaviate.go index 40df346ea..0a0f47160 100644 --- a/go/plugins/weaviate/weaviate.go +++ b/go/plugins/weaviate/weaviate.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package weaviate import ( diff --git a/go/plugins/weaviate/weaviate_test.go b/go/plugins/weaviate/weaviate_test.go index c1f1ad533..c65f29a4d 100644 --- a/go/plugins/weaviate/weaviate_test.go +++ b/go/plugins/weaviate/weaviate_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package weaviate import ( diff --git a/go/samples/coffee-shop/main.go b/go/samples/coffee-shop/main.go index 28e76ccf6..b017e854e 100755 --- a/go/samples/coffee-shop/main.go +++ b/go/samples/coffee-shop/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // This program can be manually tested like so: // // In development mode (with the environment variable GENKIT_ENV="dev"): diff --git a/go/samples/firebase-auth/main.go b/go/samples/firebase-auth/main.go index 3b22dfb97..ea1c22db1 100644 --- a/go/samples/firebase-auth/main.go +++ b/go/samples/firebase-auth/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/samples/flow-sample1/main.go b/go/samples/flow-sample1/main.go index 1906889a7..5f1a7cd7f 100644 --- a/go/samples/flow-sample1/main.go +++ b/go/samples/flow-sample1/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // This program can be manually tested like so: // Start the server listening on port 3100: // diff --git a/go/samples/menu/main.go b/go/samples/menu/main.go index 369e93d64..b98990f20 100644 --- a/go/samples/menu/main.go +++ b/go/samples/menu/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/samples/menu/s01.go b/go/samples/menu/s01.go index 565c3cbc7..ae254a01a 100644 --- a/go/samples/menu/s01.go +++ b/go/samples/menu/s01.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/samples/menu/s02.go b/go/samples/menu/s02.go index 7c404bf62..9a17d769e 100644 --- a/go/samples/menu/s02.go +++ b/go/samples/menu/s02.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/samples/menu/s03.go b/go/samples/menu/s03.go index a2ed32d7b..daa0192bf 100644 --- a/go/samples/menu/s03.go +++ b/go/samples/menu/s03.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/samples/menu/s04.go b/go/samples/menu/s04.go index a5c1e50b3..620e19aec 100644 --- a/go/samples/menu/s04.go +++ b/go/samples/menu/s04.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/samples/menu/s05.go b/go/samples/menu/s05.go index 7ae82a5bd..95eade691 100644 --- a/go/samples/menu/s05.go +++ b/go/samples/menu/s05.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package main import ( diff --git a/go/samples/pgvector/main.go b/go/samples/pgvector/main.go index aedee9a99..929c830b2 100644 --- a/go/samples/pgvector/main.go +++ b/go/samples/pgvector/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // This program shows how to use Postgres's pgvector extension with Genkit. // This program can be manually tested like so: diff --git a/go/samples/rag/main.go b/go/samples/rag/main.go index fedcda02e..f4f8c0baf 100644 --- a/go/samples/rag/main.go +++ b/go/samples/rag/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // This program can be manually tested like so: // // In development mode (with the environment variable GENKIT_ENV="dev"): diff --git a/go/tests/api_test.go b/go/tests/api_test.go index b4def2945..f93d281d4 100644 --- a/go/tests/api_test.go +++ b/go/tests/api_test.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package api_test import ( diff --git a/go/tests/test_app/main.go b/go/tests/test_app/main.go index 78821235b..3b1305d9c 100644 --- a/go/tests/test_app/main.go +++ b/go/tests/test_app/main.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 // This program doesn't do anything interesting. // It is used by go/tests/api_test.go. package main diff --git a/go/tests/utils/utils.go b/go/tests/utils/utils.go index a6d3d172e..58655d268 100644 --- a/go/tests/utils/utils.go +++ b/go/tests/utils/utils.go @@ -11,7 +11,8 @@ // 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. - +// +// SPDX-License-Identifier: Apache-2.0 package test_utils import (