Skip to content

telegraf: Extract every Go module so licenses resolve on all arches - #145

Closed
lucianogdittgen wants to merge 1 commit into
OSSystemsEmbeddedLinux:masterfrom
lucianogdittgen:fix/telegraf-module-licenses
Closed

lucianogdittgen wants to merge 1 commit into
OSSystemsEmbeddedLinux:masterfrom
lucianogdittgen:fix/telegraf-module-licenses

Conversation

@lucianogdittgen

Copy link
Copy Markdown
Contributor

go install only extracts the modules in the target's build graph. On arm, the amd64-only klauspost/cpuid module stayed zipped, so do_populate_lic failed on its LICENSE. The recipe now unpacks the remaining cached zips after compile. go mod download is not an option: it refuses to run offline, because the fetcher writes no .info files.

Tested: bitbake telegraf for qemuarm, and the cpuid LICENSE is deployed.

go install only extracts the modules in the target's build graph, so on
arm the amd64-only klauspost/cpuid stayed zipped and do_populate_lic
failed on its LICENSE. Unpack the remaining cached zips after compile
(go mod download refuses offline: the fetcher writes no .info files).
Tested with bitbake telegraf for qemuarm; the cpuid LICENSE is deployed.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
@lucianogdittgen
lucianogdittgen force-pushed the fix/telegraf-module-licenses branch from d31d9a6 to d27f362 Compare November 10, 2026 18:23
@lucianogdittgen
lucianogdittgen marked this pull request as draft November 10, 2026 18:31
@lucianogdittgen
lucianogdittgen marked this pull request as ready for review November 10, 2026 19:11
@lucianogdittgen

Copy link
Copy Markdown
Contributor Author

Closing: we decided to remove the telegraf recipe instead of fixing it. Superseded by #152.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant