From 1508956cf1d95f06e2b4709991c9abfdb81c75ca Mon Sep 17 00:00:00 2001 From: Constanca Manteigas Date: Wed, 15 Jan 2025 14:25:50 +0100 Subject: [PATCH] fix module name --- extension/encoding/cloudwatchencoding/doc.go | 5 ----- .../Makefile | 0 .../config.go | 2 +- .../config_test.go | 2 +- extension/encoding/cloudwatchencodingextension/doc.go | 5 +++++ .../extension.go | 2 +- .../extension_test.go | 2 +- .../factory.go | 2 +- .../factory_test.go | 2 +- .../generated_component_test.go | 2 +- .../generated_package_test.go | 5 ++--- .../go.mod | 0 .../go.sum | 0 .../internal/metadata/generated_status.go | 0 .../metadata.yaml | 0 .../testdata/config.yaml | 0 16 files changed, 14 insertions(+), 15 deletions(-) delete mode 100644 extension/encoding/cloudwatchencoding/doc.go rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/Makefile (100%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/config.go (78%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/config_test.go (97%) create mode 100644 extension/encoding/cloudwatchencodingextension/doc.go rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/extension.go (92%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/extension_test.go (92%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/factory.go (73%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/factory_test.go (92%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/generated_component_test.go (97%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/generated_package_test.go (80%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/go.mod (100%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/go.sum (100%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/internal/metadata/generated_status.go (100%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/metadata.yaml (100%) rename extension/encoding/{cloudwatchencoding => cloudwatchencodingextension}/testdata/config.yaml (100%) diff --git a/extension/encoding/cloudwatchencoding/doc.go b/extension/encoding/cloudwatchencoding/doc.go deleted file mode 100644 index 86b00ea0d448..000000000000 --- a/extension/encoding/cloudwatchencoding/doc.go +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright The OpenTelemetry Authors -// SPDX-License-Identifier: Apache-2.0 - -//go:generate mdatagen metadata.yaml -package cloudwatchencoding // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/cloudwatchencodingextension" diff --git a/extension/encoding/cloudwatchencoding/Makefile b/extension/encoding/cloudwatchencodingextension/Makefile similarity index 100% rename from extension/encoding/cloudwatchencoding/Makefile rename to extension/encoding/cloudwatchencodingextension/Makefile diff --git a/extension/encoding/cloudwatchencoding/config.go b/extension/encoding/cloudwatchencodingextension/config.go similarity index 78% rename from extension/encoding/cloudwatchencoding/config.go rename to extension/encoding/cloudwatchencodingextension/config.go index b905f7368c33..51b98376eaad 100644 --- a/extension/encoding/cloudwatchencoding/config.go +++ b/extension/encoding/cloudwatchencodingextension/config.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package cloudwatchencoding // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/cloudwatchencodingextension" +package cloudwatchencodingextension // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/cloudwatchencodingextension" import ( "fmt" diff --git a/extension/encoding/cloudwatchencoding/config_test.go b/extension/encoding/cloudwatchencodingextension/config_test.go similarity index 97% rename from extension/encoding/cloudwatchencoding/config_test.go rename to extension/encoding/cloudwatchencodingextension/config_test.go index dc7247b1e20a..4c01fe473ed2 100644 --- a/extension/encoding/cloudwatchencoding/config_test.go +++ b/extension/encoding/cloudwatchencodingextension/config_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package cloudwatchencoding +package cloudwatchencodingextension import ( "errors" diff --git a/extension/encoding/cloudwatchencodingextension/doc.go b/extension/encoding/cloudwatchencodingextension/doc.go new file mode 100644 index 000000000000..26f7685e8355 --- /dev/null +++ b/extension/encoding/cloudwatchencodingextension/doc.go @@ -0,0 +1,5 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +//go:generate mdatagen metadata.yaml +package cloudwatchencodingextension // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/cloudwatchencodingextension" diff --git a/extension/encoding/cloudwatchencoding/extension.go b/extension/encoding/cloudwatchencodingextension/extension.go similarity index 92% rename from extension/encoding/cloudwatchencoding/extension.go rename to extension/encoding/cloudwatchencodingextension/extension.go index e050ad472e9f..53ad1708eafe 100644 --- a/extension/encoding/cloudwatchencoding/extension.go +++ b/extension/encoding/cloudwatchencodingextension/extension.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package cloudwatchencoding // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/cloudwatchencodingextension" +package cloudwatchencodingextension // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/cloudwatchencodingextension" import ( "bytes" diff --git a/extension/encoding/cloudwatchencoding/extension_test.go b/extension/encoding/cloudwatchencodingextension/extension_test.go similarity index 92% rename from extension/encoding/cloudwatchencoding/extension_test.go rename to extension/encoding/cloudwatchencodingextension/extension_test.go index cc0bc80fb6b3..a3e43191c0ab 100644 --- a/extension/encoding/cloudwatchencoding/extension_test.go +++ b/extension/encoding/cloudwatchencodingextension/extension_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package cloudwatchencoding +package cloudwatchencodingextension import ( "context" diff --git a/extension/encoding/cloudwatchencoding/factory.go b/extension/encoding/cloudwatchencodingextension/factory.go similarity index 73% rename from extension/encoding/cloudwatchencoding/factory.go rename to extension/encoding/cloudwatchencodingextension/factory.go index d903b52fa4e4..7a2dc855dace 100644 --- a/extension/encoding/cloudwatchencoding/factory.go +++ b/extension/encoding/cloudwatchencodingextension/factory.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package cloudwatchencoding // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/cloudwatchencodingextension" +package cloudwatchencodingextension // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/cloudwatchencodingextension" import ( "go.opentelemetry.io/collector/extension" diff --git a/extension/encoding/cloudwatchencoding/factory_test.go b/extension/encoding/cloudwatchencodingextension/factory_test.go similarity index 92% rename from extension/encoding/cloudwatchencoding/factory_test.go rename to extension/encoding/cloudwatchencodingextension/factory_test.go index 961c5d9a8b92..e7c8a1af3d47 100644 --- a/extension/encoding/cloudwatchencoding/factory_test.go +++ b/extension/encoding/cloudwatchencodingextension/factory_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package cloudwatchencoding +package cloudwatchencodingextension import ( "context" diff --git a/extension/encoding/cloudwatchencoding/generated_component_test.go b/extension/encoding/cloudwatchencodingextension/generated_component_test.go similarity index 97% rename from extension/encoding/cloudwatchencoding/generated_component_test.go rename to extension/encoding/cloudwatchencodingextension/generated_component_test.go index 7433cbe3ea71..ca9003d4db78 100644 --- a/extension/encoding/cloudwatchencoding/generated_component_test.go +++ b/extension/encoding/cloudwatchencodingextension/generated_component_test.go @@ -1,6 +1,6 @@ // Code generated by mdatagen. DO NOT EDIT. -package cloudwatchencoding +package cloudwatchencodingextension import ( "context" diff --git a/extension/encoding/cloudwatchencoding/generated_package_test.go b/extension/encoding/cloudwatchencodingextension/generated_package_test.go similarity index 80% rename from extension/encoding/cloudwatchencoding/generated_package_test.go rename to extension/encoding/cloudwatchencodingextension/generated_package_test.go index a0fdb5d7509e..6a98f31ff6c3 100644 --- a/extension/encoding/cloudwatchencoding/generated_package_test.go +++ b/extension/encoding/cloudwatchencodingextension/generated_package_test.go @@ -1,11 +1,10 @@ // Code generated by mdatagen. DO NOT EDIT. -package cloudwatchencoding +package cloudwatchencodingextension import ( - "testing" - "go.uber.org/goleak" + "testing" ) func TestMain(m *testing.M) { diff --git a/extension/encoding/cloudwatchencoding/go.mod b/extension/encoding/cloudwatchencodingextension/go.mod similarity index 100% rename from extension/encoding/cloudwatchencoding/go.mod rename to extension/encoding/cloudwatchencodingextension/go.mod diff --git a/extension/encoding/cloudwatchencoding/go.sum b/extension/encoding/cloudwatchencodingextension/go.sum similarity index 100% rename from extension/encoding/cloudwatchencoding/go.sum rename to extension/encoding/cloudwatchencodingextension/go.sum diff --git a/extension/encoding/cloudwatchencoding/internal/metadata/generated_status.go b/extension/encoding/cloudwatchencodingextension/internal/metadata/generated_status.go similarity index 100% rename from extension/encoding/cloudwatchencoding/internal/metadata/generated_status.go rename to extension/encoding/cloudwatchencodingextension/internal/metadata/generated_status.go diff --git a/extension/encoding/cloudwatchencoding/metadata.yaml b/extension/encoding/cloudwatchencodingextension/metadata.yaml similarity index 100% rename from extension/encoding/cloudwatchencoding/metadata.yaml rename to extension/encoding/cloudwatchencodingextension/metadata.yaml diff --git a/extension/encoding/cloudwatchencoding/testdata/config.yaml b/extension/encoding/cloudwatchencodingextension/testdata/config.yaml similarity index 100% rename from extension/encoding/cloudwatchencoding/testdata/config.yaml rename to extension/encoding/cloudwatchencodingextension/testdata/config.yaml