mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-10 19:29:14 +08:00

gopsutil is a transitive dependency of another project that I am integrating into an internal build system. We target multiple platforms and as a part of the build system for the large internal repo, we calculate the build graph used to determine what targets have changed and need to be build / tested as a single DAG for all platforms. gopsutil currently does not form a DAG if linux and any other platform are considered at the same time. linux is the only platform where the process package imports the host package. To remove this cycle, the relevant methods have been moved to internal/common with the linux build tag and are consumed the host and process packages.