Skip to content

Commit

Permalink
Add comment to patched main.go
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Chlebek <[email protected]>
  • Loading branch information
echlebek committed Oct 5, 2023
1 parent 7fbfb9c commit 748e91e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions otelcolbuilder/cmd/01_main.go.patch
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 748e91e

Please sign in to comment.