On 22/09/2026 07:31, [email protected] wrote:
This module is a transitive dependency of github.com/shirou/gopsutil (already in
Debian). It is required to build gopsutil's reverse dependencies -- such as the
OpenTelemetry Collector -- under the module-aware dh-go build system, in which
the whole module graph must resolve locally even for platform-specific code
(here, Plan 9) that is never compiled on Debian's architectures.

Wasn't there a way to patch this out?

Or maybe it would be good to have a way in dh-go to exclude a module from the build (e.g. with an environment variable). From what I understood, dh-go creates a go.work file to rewire each module to its Debian packaged directory, but maybe it could also edit the go.mod file to remove excluded dependencies?

This would be more maintainable than patching the go.mod files using quilt, as it would not be affected by upstream dependency updates.
--
Nicolas Peugnet

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to