Skip to content

Commit

Permalink
Revert "chore(otelcolbuilder): move deprecated CLI options to otelcol…
Browse files Browse the repository at this point in the history
…-builder.yaml"

This reverts commit 7b02da7.
  • Loading branch information
Mikołaj Świątek committed Feb 7, 2023
1 parent ca7eaed commit 3086c9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions otelcolbuilder/.otelcol-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ dist:
# the path to write the output (sources and binary).
output_path: ./cmd

# These options were formerly CLI arguments of otelcol-builder
# They are being set in Makefile.
go: $(GO)
version: $(VERSION)$(FIPS_SUFFIX)

exporters:
# Exporters with non-upstreamed changes:
- gomod: "github.com/SumoLogic/sumologic-otel-collector/pkg/exporter/sumologicexporter v0.0.0-00010101000000-000000000000"
Expand Down
3 changes: 3 additions & 0 deletions otelcolbuilder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ _builder:
# Need to specify go path because otherwise opentelemetry-collector-builder
# uses /usr/bin/go which on Github Actions is using preinstalled 1.15.12 by default.
CGO_ENABLED=$(CGO_ENABLED) $(BUILDER_BIN_NAME) \
--go $(GO) \
--version "$(VERSION)$(FIPS_SUFFIX)" \
--config .otelcol-builder.yaml \
--output-path ./cmd \
--skip-compilation=$(SKIP_COMPILATION)

.PHONY: _gobuild
Expand Down

0 comments on commit 3086c9f

Please sign in to comment.