From 9cd0c3733faac5a371f6514cf991b3792863c8ca Mon Sep 17 00:00:00 2001 From: Eric Chlebek Date: Thu, 5 Oct 2023 14:11:22 -0700 Subject: [PATCH] Add comment to patched main.go Signed-off-by: Eric Chlebek --- otelcolbuilder/cmd/01_main.go.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/otelcolbuilder/cmd/01_main.go.patch b/otelcolbuilder/cmd/01_main.go.patch index 0b0802ae6e..3935375e9e 100644 --- a/otelcolbuilder/cmd/01_main.go.patch +++ b/otelcolbuilder/cmd/01_main.go.patch @@ -1,9 +1,10 @@ ---- main.go 2023-08-24 11:29:26.976310545 -0700 -+++ main_patched.go 2023-08-24 11:29:53.876416794 -0700 -@@ -29,6 +29,7 @@ +--- main.go 2023-10-05 14:07:54.808446767 -0700 ++++ mainpatch.go 2023-10-05 14:08:28.426592750 -0700 +@@ -34,6 +34,8 @@ + } - func runInteractive(params otelcol.CollectorSettings) error { cmd := otelcol.NewCommand(params) ++ // this is only here so that the flag can be recognized by the upstream parser and displayed in help + cmd.Flags().StringVarP(&opAmpConfig, "opamp-config", "", "", "path to opamp config file") if err := cmd.Execute(); err != nil { log.Fatalf("collector server run finished with error: %v", err)