Files
zooqueenandHanzo Dev 7d16394d37 builder: finish the refactor that left the package uncompilable
cmd/builder/internal/builder did not build. A method had been turned into a
free function and neither its body nor its callers followed:

  - parseModules still reads c.Distribution, so it needs the receiver back.
    Eleven call sites already spell it `c.parseModules`, four of them in
    main_test.go; two did not.
  - ParseModules carried a duplicated block — c.Telemetry assigned twice from
    the same slice, and ConfmapProviders parsed twice. The second parse is not
    merely redundant: usedNames carries across calls, so every provider was
    seen twice and the de-duplicating rename would have fired on names that
    appear once.

go.sum was also short two entries (zap, x/sys) at versions go.mod already
pinned, and go.mod was missing go.yaml.in/yaml/v3.

The package compiles now and cmd/builder/internal passes. internal/builder
still has four failures — MarshalYAML wants nil sections omitted, and
Versioning/GenerateAndCompile/ReplaceStatementsAreComplete build a collector.
None of them could have run while the package did not compile; they are not
from this change and want the same upstream re-sync confmap does.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-10 00:11:45 -07:00

46 lines
1.4 KiB
AMPL

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
module go.opentelemetry.io/collector/cmd/builder
go 1.26.5
require (
github.com/knadh/koanf/parsers/yaml v1.1.0
github.com/knadh/koanf/providers/env/v2 v2.0.0
github.com/knadh/koanf/providers/file v1.2.1
github.com/knadh/koanf/providers/fs v1.0.0
github.com/knadh/koanf/v2 v2.3.2
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
github.com/stretchr/testify v1.11.1
go.uber.org/goleak v1.3.0
go.uber.org/multierr v1.11.0
go.uber.org/zap v1.27.1
golang.org/x/mod v0.33.0
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/knadh/koanf/maps v0.1.2 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/sys v0.41.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
retract (
v0.76.0 // Depends on retracted pdata v1.0.0-rc10 module, use v0.76.1
v0.69.0 // Release failed, use v0.69.1
v0.57.1 // Release failed, use v0.57.2
v0.57.0 // Release failed, use v0.57.2
)