To reproduce:
-
Install a Go toolchain.
-
Clone this repository.
git clone git@github.com:SeanPMiller/otelcol-issue-10031.git
-
Change working directory into your local clone of this repository.
cd otelcol-issue-10031
-
Compile the binary.
go build -v ./cmd/issue10031/
-
Run the binary against the given configuration file.
./issue10031 --config=file:$(pwd)/issue10031.yaml
-
Observe failure.
-
Edit the
go.mod
file, using your editor to changev0.98.0
tov0.97.0
. -
Repeat steps 4-5. You may need to run a
go get
to pull older modules. -
Observe success.