Closed dgpc closed 3 years ago
Correction, that error was from trying to isolate the problem outside the telegraf source tree, but of course that can't see internal packages.
When copied into the repo per the Dockerfile here, the error is:
build command-line-arguments: cannot load github.com/influxdata/telegraf/internal/config: no matching versions for query "latest"
Reproduced the issue inside your Dockerfile.test
.
The issue seems to be introduced somewhere between 1.14 and 1.15, with --build-arg VERSION=1.14
it works and with --build-arg VERSION=1.15
we get the error:
go: finding module for package github.com/influxdata/telegraf/internal/config
go: finding module for package github.com/influxdata/telegraf/internal/models
gen/gen.go:9:2: no matching versions for query "latest"
gen/gen.go:10:2: no matching versions for query "latest"
The last commit to touch internal/config/config.go seems to be: https://github.com/influxdata/telegraf/commit/90b159d5f5f601e32b29af5ef8e5c4661446781e
That file now seems to have moved out of /internal/config and up a level to /config, same with the models package (though I couldn't find the commit where this happened).
Sent pull request https://github.com/rawkode/bring-your-own-telegraf/pull/3 to resolve.
@dgpc Hey! I'm sorry I missed this :(
Looks like some upstream changes may have broken this tooling: